Skip navigation links

com.diffplug.durian:durian-core:1.2.0 by DiffPlug

A B C D E F G H I J K L M N O P R S T U V W X Z 

A

accept(T) - Method in interface com.diffplug.common.base.Box
Deprecated.
Provided to satisfy the Consumer interface; use Box.set(T) instead.
accept(double) - Method in interface com.diffplug.common.base.Box.Dbl
Deprecated.
Provided to satisfy the DoubleConsumer; use Box.Dbl.set(double) instead.
accept(int) - Method in interface com.diffplug.common.base.Box.Int
Deprecated.
Provided to satisfy the IntConsumer interface; use Box.Int.set(int) instead.
accept(long) - Method in interface com.diffplug.common.base.Box.Lng
Deprecated.
Provided to satisfy LongConsumer interface; use Box.Lng.set(long) instead.
accept(T) - Method in interface com.diffplug.common.base.Box.Nullable
Deprecated.
Provided to satisfy the Function interface; use Box.Nullable.set(T) instead.
accept(Consumer<? super L>, Consumer<? super R>) - Method in class com.diffplug.common.base.Either
Accepts either the left or the right consumer as appropriate.
accept(Throwable) - Method in class com.diffplug.common.base.Errors
Passes the given error to this Errors.
accept(Throwable) - Method in class com.diffplug.common.base.Errors.Plugins.OnErrorThrowAssertion
 
accept(T, U) - Method in interface com.diffplug.common.base.Throwing.Specific.BiConsumer
 
accept(T, U) - Method in interface com.diffplug.common.base.Throwing.Specific.BiPredicate
 
accept(T) - Method in interface com.diffplug.common.base.Throwing.Specific.Consumer
 
acceptBoth(Consumer<? super L>, Consumer<? super R>, L, R) - Method in class com.diffplug.common.base.Either
Accepts both the left and right consumers, using the default values to set the empty side.
ACK - Static variable in class com.diffplug.common.base.Ascii
Acknowledge: A communication control character transmitted by a receiver as an affirmative response to a sender.
add(String, Object) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds a name/value pair to the formatted output in name=value format.
add(String, boolean) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds a name/value pair to the formatted output in name=value format.
add(String, char) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds a name/value pair to the formatted output in name=value format.
add(String, double) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds a name/value pair to the formatted output in name=value format.
add(String, float) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds a name/value pair to the formatted output in name=value format.
add(String, int) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds a name/value pair to the formatted output in name=value format.
add(String, long) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds a name/value pair to the formatted output in name=value format.
addValue(Object) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds an unnamed value to the formatted output.
addValue(boolean) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds an unnamed value to the formatted output.
addValue(char) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds an unnamed value to the formatted output.
addValue(double) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds an unnamed value to the formatted output.
addValue(float) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds an unnamed value to the formatted output.
addValue(int) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds an unnamed value to the formatted output.
addValue(long) - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Adds an unnamed value to the formatted output.
allPrimitiveTypes() - Static method in class com.diffplug.common.primitives.Primitives
Returns an immutable set of all nine primitive types (including void).
allWrapperTypes() - Static method in class com.diffplug.common.primitives.Primitives
Returns an immutable set of all nine primitive-wrapper types (including Void).
alwaysFalse() - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that always evaluates to false.
alwaysTrue() - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that always evaluates to true.
and(CharMatcher) - Method in class com.diffplug.common.base.CharMatcher
Returns a matcher that matches any character matched by both this matcher and other.
and(Iterable<? extends Predicate<? super T>>) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if each of its components evaluates to true.
and(Predicate<? super T>...) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if each of its components evaluates to true.
and(Predicate<? super T>, Predicate<? super T>) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if both of its components evaluate to true.
andThen(Converter<B, C>) - Method in class com.diffplug.common.base.Converter
Returns a converter whose convert method applies secondConverter to the result of this converter.
andThen(ConverterNullable<B, C>) - Method in interface com.diffplug.common.base.ConverterNullable
Returns a converter whose convert method applies secondConverter to the result of this converter.
ANY - Static variable in class com.diffplug.common.base.CharMatcher
Matches any character.
any() - Static method in class com.diffplug.common.base.CharMatcher
Matches any character.
anyOf(CharSequence) - Static method in class com.diffplug.common.base.CharMatcher
Returns a char matcher that matches any character present in the given character sequence.
appendTo(A, Iterable<?>) - Method in class com.diffplug.common.base.Joiner
Appends the string representation of each of parts, using the previously configured separator between each, to appendable.
appendTo(A, Iterator<?>) - Method in class com.diffplug.common.base.Joiner
Appends the string representation of each of parts, using the previously configured separator between each, to appendable.
appendTo(A, Object[]) - Method in class com.diffplug.common.base.Joiner
Appends the string representation of each of parts, using the previously configured separator between each, to appendable.
appendTo(A, Object, Object, Object...) - Method in class com.diffplug.common.base.Joiner
Appends to appendable the string representation of each of the remaining arguments.
appendTo(StringBuilder, Iterable<?>) - Method in class com.diffplug.common.base.Joiner
Appends the string representation of each of parts, using the previously configured separator between each, to builder.
appendTo(StringBuilder, Iterator<?>) - Method in class com.diffplug.common.base.Joiner
Appends the string representation of each of parts, using the previously configured separator between each, to builder.
appendTo(StringBuilder, Object[]) - Method in class com.diffplug.common.base.Joiner
Appends the string representation of each of parts, using the previously configured separator between each, to builder.
appendTo(StringBuilder, Object, Object, Object...) - Method in class com.diffplug.common.base.Joiner
Appends to builder the string representation of each of the remaining arguments.
appendTo(A, Map<?, ?>) - Method in class com.diffplug.common.base.Joiner.MapJoiner
Appends the string representation of each entry of map, using the previously configured separator and key-value separator, to appendable.
appendTo(StringBuilder, Map<?, ?>) - Method in class com.diffplug.common.base.Joiner.MapJoiner
Appends the string representation of each entry of map, using the previously configured separator and key-value separator, to builder.
appendTo(A, Iterable<? extends Map.Entry<?, ?>>) - Method in class com.diffplug.common.base.Joiner.MapJoiner
Appends the string representation of each entry in entries, using the previously configured separator and key-value separator, to appendable.
appendTo(A, Iterator<? extends Map.Entry<?, ?>>) - Method in class com.diffplug.common.base.Joiner.MapJoiner
Appends the string representation of each entry in entries, using the previously configured separator and key-value separator, to appendable.
appendTo(StringBuilder, Iterable<? extends Map.Entry<?, ?>>) - Method in class com.diffplug.common.base.Joiner.MapJoiner
Appends the string representation of each entry in entries, using the previously configured separator and key-value separator, to builder.
appendTo(StringBuilder, Iterator<? extends Map.Entry<?, ?>>) - Method in class com.diffplug.common.base.Joiner.MapJoiner
Appends the string representation of each entry in entries, using the previously configured separator and key-value separator, to builder.
apply(A) - Method in class com.diffplug.common.base.Converter
Deprecated.
Provided to satisfy the Function interface; use Converter.convert(A) instead.
apply(T, U) - Method in interface com.diffplug.common.base.Throwing.Specific.BiFunction
 
apply(T) - Method in interface com.diffplug.common.base.Throwing.Specific.Function
 
Ascii - Class in com.diffplug.common.base
Static methods pertaining to ASCII characters (those in the range of values 0x00 through 0x7F), and to strings containing such characters.
ASCII - Static variable in class com.diffplug.common.base.CharMatcher
Determines whether a character is ASCII, meaning that its code point is less than 128.
ascii() - Static method in class com.diffplug.common.base.CharMatcher
Determines whether a character is ASCII, meaning that its code point is less than 128.
asList(boolean...) - Static method in class com.diffplug.common.primitives.Booleans
Returns a fixed-size list backed by the specified array, similar to Arrays.asList(Object[]).
asList(byte...) - Static method in class com.diffplug.common.primitives.Bytes
Returns a fixed-size list backed by the specified array, similar to Arrays.asList(Object[]).
asList(char...) - Static method in class com.diffplug.common.primitives.Chars
Returns a fixed-size list backed by the specified array, similar to Arrays.asList(Object[]).
asList(double...) - Static method in class com.diffplug.common.primitives.Doubles
Returns a fixed-size list backed by the specified array, similar to Arrays.asList(Object[]).
asList(float...) - Static method in class com.diffplug.common.primitives.Floats
Returns a fixed-size list backed by the specified array, similar to Arrays.asList(Object[]).
asList(int...) - Static method in class com.diffplug.common.primitives.Ints
Returns a fixed-size list backed by the specified array, similar to Arrays.asList(Object[]).
asList(long...) - Static method in class com.diffplug.common.primitives.Longs
Returns a fixed-size list backed by the specified array, similar to Arrays.asList(Object[]).
asList(short...) - Static method in class com.diffplug.common.primitives.Shorts
Returns a fixed-size list backed by the specified array, similar to Arrays.asList(Object[]).
asOptionalLeft() - Method in class com.diffplug.common.base.Either
Returns the left side as an Optional.
asOptionalRight() - Method in class com.diffplug.common.base.Either
Returns the right side as an Optional.
asRuntime(Throwable) - Static method in class com.diffplug.common.base.Errors
Casts or wraps the given exception to be a RuntimeException.
assignableFrom(Class<?>) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if the class being tested is assignable from the given class.
asTerminal() - Method in class com.diffplug.common.base.Errors
Converts this Consumer<Throwable> to a Consumer<Optional<Throwable>>.

B

BEL - Static variable in class com.diffplug.common.base.Ascii
Bell (‘\a’): A character for use when there is a need to call for human attention.
Beta - Annotation Type in com.diffplug.common.annotations
Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.
BigIntegerMath - Class in com.diffplug.common.math
A class for arithmetic on values of type BigInteger.
bigIntegerValue() - Method in class com.diffplug.common.primitives.UnsignedInteger
Returns the value of this UnsignedInteger as a BigInteger.
bigIntegerValue() - Method in class com.diffplug.common.primitives.UnsignedLong
Returns the value of this UnsignedLong as a BigInteger.
binomial(int, int) - Static method in class com.diffplug.common.math.BigIntegerMath
Returns n choose k, also known as the binomial coefficient of n and k, that is, n! / (k! (n - k)!).
binomial(int, int) - Static method in class com.diffplug.common.math.IntMath
Returns n choose k, also known as the binomial coefficient of n and k, or Integer.MAX_VALUE if the result does not fit in an int.
binomial(int, int) - Static method in class com.diffplug.common.math.LongMath
Returns n choose k, also known as the binomial coefficient of n and k, or Long.MAX_VALUE if the result does not fit in a long.
Booleans - Class in com.diffplug.common.primitives
Static utility methods pertaining to boolean primitives, that are not already found in either Boolean or Arrays.
Box<T> - Interface in com.diffplug.common.base
Provides get/set access to a mutable non-null value.
Box.Dbl - Interface in com.diffplug.common.base
A Box for primitive doubles.
Box.Int - Interface in com.diffplug.common.base
A Box for primitive ints.
Box.Lng - Interface in com.diffplug.common.base
A Box for primitive longs.
Box.Nullable<T> - Interface in com.diffplug.common.base
A Box which allows nulls.
BREAKING_WHITESPACE - Static variable in class com.diffplug.common.base.CharMatcher
Determines whether a character is a breaking whitespace (that is, a whitespace which can be interpreted as a break between words for formatting purposes).
breakingWhitespace() - Static method in class com.diffplug.common.base.CharMatcher
Determines whether a character is a breaking whitespace (that is, a whitespace which can be interpreted as a break between words for formatting purposes).
BS - Static variable in class com.diffplug.common.base.Ascii
Backspace (‘\b’): A format effector which controls the movement of the printing position one printing space backward on the same printing line.
buildString(Consumer<StringPrinter>) - Static method in class com.diffplug.common.base.StringPrinter
Easy way to create a String using a StringPrinter.
buildStringFromLines(String...) - Static method in class com.diffplug.common.base.StringPrinter
Utility method for creating multi-line strings (joined with \n, never \r\n).
byteException(byte) - Static method in exception com.diffplug.common.base.Unhandled
 
Bytes - Class in com.diffplug.common.primitives
Static utility methods pertaining to byte primitives, that are not already found in either Byte or Arrays, and interpret bytes as neither signed nor unsigned.
BYTES - Static variable in class com.diffplug.common.primitives.Chars
The number of bytes required to represent a primitive char value.
BYTES - Static variable in class com.diffplug.common.primitives.Doubles
The number of bytes required to represent a primitive double value.
BYTES - Static variable in class com.diffplug.common.primitives.Floats
The number of bytes required to represent a primitive float value.
BYTES - Static variable in class com.diffplug.common.primitives.Ints
The number of bytes required to represent a primitive int value.
BYTES - Static variable in class com.diffplug.common.primitives.Longs
The number of bytes required to represent a primitive long value.
BYTES - Static variable in class com.diffplug.common.primitives.Shorts
The number of bytes required to represent a primitive short value.

C

CAN - Static variable in class com.diffplug.common.base.Ascii
Cancel: A control character used to indicate that the data with which it is sent is in error or is to be disregarded.
CaseFormat - Enum in com.diffplug.common.base
Utility class for converting between various ASCII case formats.
charException(char) - Static method in exception com.diffplug.common.base.Unhandled
 
CharMatcher - Class in com.diffplug.common.base
Determines a true or false value for any Java char value, just as Predicate does for any Object.
CharMatcher() - Constructor for class com.diffplug.common.base.CharMatcher
Constructor for use by subclasses.
Chars - Class in com.diffplug.common.primitives
Static utility methods pertaining to char primitives, that are not already found in either Character or Arrays.
checkArgument(boolean) - Static method in class com.diffplug.common.base.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkArgument(boolean, Object) - Static method in class com.diffplug.common.base.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkArgument(boolean, String, Object...) - Static method in class com.diffplug.common.base.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkedAdd(int, int) - Static method in class com.diffplug.common.math.IntMath
Returns the sum of a and b, provided it does not overflow.
checkedAdd(long, long) - Static method in class com.diffplug.common.math.LongMath
Returns the sum of a and b, provided it does not overflow.
checkedCast(long) - Static method in class com.diffplug.common.primitives.Chars
Returns the char value that is equal to value, if possible.
checkedCast(long) - Static method in class com.diffplug.common.primitives.Ints
Returns the int value that is equal to value, if possible.
checkedCast(long) - Static method in class com.diffplug.common.primitives.Shorts
Returns the short value that is equal to value, if possible.
checkedCast(long) - Static method in class com.diffplug.common.primitives.SignedBytes
Returns the byte value that is equal to value, if possible.
checkedCast(long) - Static method in class com.diffplug.common.primitives.UnsignedBytes
Returns the byte value that, when treated as unsigned, is equal to value, if possible.
checkedMultiply(int, int) - Static method in class com.diffplug.common.math.IntMath
Returns the product of a and b, provided it does not overflow.
checkedMultiply(long, long) - Static method in class com.diffplug.common.math.LongMath
Returns the product of a and b, provided it does not overflow.
checkedPow(int, int) - Static method in class com.diffplug.common.math.IntMath
Returns the b to the kth power, provided it does not overflow.
checkedPow(long, int) - Static method in class com.diffplug.common.math.LongMath
Returns the b to the kth power, provided it does not overflow.
checkedSubtract(int, int) - Static method in class com.diffplug.common.math.IntMath
Returns the difference of a and b, provided it does not overflow.
checkedSubtract(long, long) - Static method in class com.diffplug.common.math.LongMath
Returns the difference of a and b, provided it does not overflow.
checkElementIndex(int, int) - Static method in class com.diffplug.common.base.Preconditions
Ensures that index specifies a valid element in an array, list or string of size size.
checkElementIndex(int, int, String) - Static method in class com.diffplug.common.base.Preconditions
Ensures that index specifies a valid element in an array, list or string of size size.
checkNotNull(T) - Static method in class com.diffplug.common.base.Preconditions
Ensures that an object reference passed as a parameter to the calling method is not null.
checkNotNull(T, Object) - Static method in class com.diffplug.common.base.Preconditions
Ensures that an object reference passed as a parameter to the calling method is not null.
checkNotNull(T, String, Object...) - Static method in class com.diffplug.common.base.Preconditions
Ensures that an object reference passed as a parameter to the calling method is not null.
checkPositionIndex(int, int) - Static method in class com.diffplug.common.base.Preconditions
Ensures that index specifies a valid position in an array, list or string of size size.
checkPositionIndex(int, int, String) - Static method in class com.diffplug.common.base.Preconditions
Ensures that index specifies a valid position in an array, list or string of size size.
checkPositionIndexes(int, int, int) - Static method in class com.diffplug.common.base.Preconditions
Ensures that start and end specify a valid positions in an array, list or string of size size, and are in order.
checkState(boolean) - Static method in class com.diffplug.common.base.Preconditions
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.
checkState(boolean, Object) - Static method in class com.diffplug.common.base.Preconditions
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.
checkState(boolean, String, Object...) - Static method in class com.diffplug.common.base.Preconditions
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.
classException(Object) - Static method in exception com.diffplug.common.base.Unhandled
 
close() - Method in class com.diffplug.common.base.FinalizableReferenceQueue
 
collapseFrom(CharSequence, char) - Method in class com.diffplug.common.base.CharMatcher
Returns a string copy of the input character sequence, with each group of consecutive characters that match this matcher replaced by a single replacement character.
com.diffplug.common.annotations - package com.diffplug.common.annotations
Common annotation types.
com.diffplug.common.base - package com.diffplug.common.base
Basic utility libraries and interfaces.
com.diffplug.common.math - package com.diffplug.common.math
Arithmetic functions operating on primitive values and BigInteger instances.
com.diffplug.common.primitives - package com.diffplug.common.primitives
Static utilities for working with the eight primitive types and void, and value types for treating them as unsigned.
commonPrefix(CharSequence, CharSequence) - Static method in class com.diffplug.common.base.Strings
Returns the longest string prefix such that a.toString().startsWith(prefix) && b.toString().startsWith(prefix), taking care not to split surrogate pairs.
commonSuffix(CharSequence, CharSequence) - Static method in class com.diffplug.common.base.Strings
Returns the longest string suffix such that a.toString().endsWith(suffix) && b.toString().endsWith(suffix), taking care not to split surrogate pairs.
compare(T, T) - Static method in enum com.diffplug.common.base.Comparison
Compares the two Comparables and returns the result.
compare(Comparator<T>, T, T) - Static method in enum com.diffplug.common.base.Comparison
Compares the two objects using the Comparator.
compare(boolean, boolean) - Static method in class com.diffplug.common.primitives.Booleans
Compares the two specified boolean values in the standard way (false is considered less than true).
compare(char, char) - Static method in class com.diffplug.common.primitives.Chars
Compares the two specified char values.
compare(double, double) - Static method in class com.diffplug.common.primitives.Doubles
Compares the two specified double values.
compare(float, float) - Static method in class com.diffplug.common.primitives.Floats
Compares the two specified float values using Float.compare(float, float).
compare(int, int) - Static method in class com.diffplug.common.primitives.Ints
Compares the two specified int values.
compare(long, long) - Static method in class com.diffplug.common.primitives.Longs
Compares the two specified long values.
compare(short, short) - Static method in class com.diffplug.common.primitives.Shorts
Compares the two specified short values.
compare(byte, byte) - Static method in class com.diffplug.common.primitives.SignedBytes
Compares the two specified byte values.
compare(byte, byte) - Static method in class com.diffplug.common.primitives.UnsignedBytes
Compares the two specified byte values, treating them as unsigned values between 0 and 255 inclusive.
compare(int, int) - Static method in class com.diffplug.common.primitives.UnsignedInts
Compares the two specified int values, treating them as unsigned values between 0 and 2^32 - 1 inclusive.
compare(long, long) - Static method in class com.diffplug.common.primitives.UnsignedLongs
Compares the two specified long values, treating them as unsigned values between 0 and 2^64 - 1 inclusive.
compareTo(UnsignedInteger) - Method in class com.diffplug.common.primitives.UnsignedInteger
Compares this unsigned integer to another unsigned integer.
compareTo(UnsignedLong) - Method in class com.diffplug.common.primitives.UnsignedLong
 
Comparison - Enum in com.diffplug.common.base
Safe representation of the result of a comparison (better than int).
compose(Function<? super T, ? extends R>, Consumer<? super R>) - Static method in class com.diffplug.common.base.Consumers
compose(Function<B, C>, Function<A, ? extends B>) - Static method in class com.diffplug.common.base.Functions
Returns the composition of two functions.
compose(Predicate<B>, Function<A, ? extends B>) - Static method in class com.diffplug.common.base.Predicates
Returns the composition of a function and a predicate.
compose(Function<? super F, T>, Supplier<F>) - Static method in class com.diffplug.common.base.Suppliers
Returns a new supplier which is the composition of the provided function and supplier.
concat(boolean[]...) - Static method in class com.diffplug.common.primitives.Booleans
Returns the values from each provided array combined into a single array.
concat(byte[]...) - Static method in class com.diffplug.common.primitives.Bytes
Returns the values from each provided array combined into a single array.
concat(char[]...) - Static method in class com.diffplug.common.primitives.Chars
Returns the values from each provided array combined into a single array.
concat(double[]...) - Static method in class com.diffplug.common.primitives.Doubles
Returns the values from each provided array combined into a single array.
concat(float[]...) - Static method in class com.diffplug.common.primitives.Floats
Returns the values from each provided array combined into a single array.
concat(int[]...) - Static method in class com.diffplug.common.primitives.Ints
Returns the values from each provided array combined into a single array.
concat(long[]...) - Static method in class com.diffplug.common.primitives.Longs
Returns the values from each provided array combined into a single array.
concat(short[]...) - Static method in class com.diffplug.common.primitives.Shorts
Returns the values from each provided array combined into a single array.
constant(E) - Static method in class com.diffplug.common.base.Functions
Creates a function that returns value for any input.
constrainTo(Class<E>) - Static method in class com.diffplug.common.base.Errors
A fluent API for calling functions which throw an overly-broad exception (e.g.
Consumers - Class in com.diffplug.common.base
Static utility methods pertaining to Consumer instances.
contains(Pattern) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if the CharSequence being tested contains any match for the given regular expression pattern.
contains(boolean[], boolean) - Static method in class com.diffplug.common.primitives.Booleans
Returns true if target is present as an element anywhere in array.
contains(byte[], byte) - Static method in class com.diffplug.common.primitives.Bytes
Returns true if target is present as an element anywhere in array.
contains(char[], char) - Static method in class com.diffplug.common.primitives.Chars
Returns true if target is present as an element anywhere in array.
contains(double[], double) - Static method in class com.diffplug.common.primitives.Doubles
Returns true if target is present as an element anywhere in array.
contains(float[], float) - Static method in class com.diffplug.common.primitives.Floats
Returns true if target is present as an element anywhere in array.
contains(int[], int) - Static method in class com.diffplug.common.primitives.Ints
Returns true if target is present as an element anywhere in array.
contains(long[], long) - Static method in class com.diffplug.common.primitives.Longs
Returns true if target is present as an element anywhere in array.
contains(short[], short) - Static method in class com.diffplug.common.primitives.Shorts
Returns true if target is present as an element anywhere in array.
containsPattern(String) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if the CharSequence being tested contains any match for the given regular expression pattern.
convert(A) - Method in class com.diffplug.common.base.Converter
Returns a representation of a as an instance of type B.
convert(A) - Method in interface com.diffplug.common.base.ConverterNullable
Returns a representation of a as an instance of type B.
convertAll(Iterable<? extends A>) - Method in class com.diffplug.common.base.Converter
Returns an iterable that applies convert to each element of fromIterable.
convertAll(Iterable<? extends A>) - Method in interface com.diffplug.common.base.ConverterNullable
Returns an iterable that applies convert to each element of fromIterable.
Converter<A,B> - Class in com.diffplug.common.base
A function from A to B with an associated reverse function from B to A; used for converting back and forth between different representations of the same information.
Converter() - Constructor for class com.diffplug.common.base.Converter
Constructor for use by subclasses.
ConverterNullable<A,B> - Interface in com.diffplug.common.base
A Converter which may receive null and may return null.
converterTo(CaseFormat) - Method in enum com.diffplug.common.base.CaseFormat
Returns a Converter that converts strings from this format to targetFormat.
convertNonNull(A) - Method in class com.diffplug.common.base.Converter
Returns a representation of a as an instance of type B, using the type system (and not null checks) to ensure that input and output are non-null.
countIn(CharSequence) - Method in class com.diffplug.common.base.CharMatcher
Returns the number of matching characters found in a character sequence.
countTrue(boolean...) - Static method in class com.diffplug.common.primitives.Booleans
Returns the number of values that are true.
CR - Static variable in class com.diffplug.common.base.Ascii
Carriage Return (‘\r’): A format effector which controls the movement of the printing position to the first printing position on the same printing line.
create(L, R) - Static method in class com.diffplug.common.base.Either
Creates a left or right, depending on which element is non-null.
createHandling(Consumer<Throwable>) - Static method in class com.diffplug.common.base.Errors
Creates an Errors.Handling which passes any exceptions it receives to the given handler.
createLeft(L) - Static method in class com.diffplug.common.base.Either
Creates an instance of Left.
createRethrowing(Function<Throwable, RuntimeException>) - Static method in class com.diffplug.common.base.Errors
Creates an Errors.Rethrowing which transforms any exceptions it receives into a RuntimeException as specified by the given function, and then throws that RuntimeException.
createRight(R) - Static method in class com.diffplug.common.base.Either
Creates an instance of Right.
createStarted() - Static method in class com.diffplug.common.base.Stopwatch
Creates (and starts) a new stopwatch using System.nanoTime() as its time source.
createStarted(Ticker) - Static method in class com.diffplug.common.base.Stopwatch
Creates (and starts) a new stopwatch, using the specified time source.
createUnstarted() - Static method in class com.diffplug.common.base.Stopwatch
Creates (but does not start) a new stopwatch using System.nanoTime() as its time source.
createUnstarted(Ticker) - Static method in class com.diffplug.common.base.Stopwatch
Creates (but does not start) a new stopwatch, using the specified time source.

D

DC1 - Static variable in class com.diffplug.common.base.Ascii
Device Control 1.
DC2 - Static variable in class com.diffplug.common.base.Ascii
Device Control 2.
DC3 - Static variable in class com.diffplug.common.base.Ascii
Device Control 3.
DC4 - Static variable in class com.diffplug.common.base.Ascii
Device Control 4.
decode(String) - Static method in class com.diffplug.common.primitives.UnsignedInts
Returns the unsigned int value represented by the given string.
decode(String) - Static method in class com.diffplug.common.primitives.UnsignedLongs
Returns the unsigned long value represented by the given string.
defaultDialog(Throwable) - Static method in interface com.diffplug.common.base.Errors.Plugins
Default behavior of Errors.dialog() is @{link Throwable#printStackTrace()} and JOptionPane.showMessageDialog.
defaultLog(Throwable) - Static method in interface com.diffplug.common.base.Errors.Plugins
Default behavior of Errors.log() is @{link Throwable#printStackTrace()}.
Defaults - Class in com.diffplug.common.base
This class provides default values for all Java types, as defined by the JLS.
defaultValue(Class<T>) - Static method in class com.diffplug.common.base.Defaults
Returns the default value of type as defined by JLS — 0 for numbers, false for boolean and '\0' for char.
DEL - Static variable in class com.diffplug.common.base.Ascii
Delete: This character is used primarily to “erase” or “obliterate” erroneous or unwanted characters in perforated tape.
dialog() - Static method in class com.diffplug.common.base.Errors
Opens a dialog to notify the user of any exceptions.
DIGIT - Static variable in class com.diffplug.common.base.CharMatcher
Determines whether a character is a digit according to Unicode.
digit() - Static method in class com.diffplug.common.base.CharMatcher
Determines whether a character is a digit according to Unicode.
divide(BigInteger, BigInteger, RoundingMode) - Static method in class com.diffplug.common.math.BigIntegerMath
Returns the result of dividing p by q, rounding using the specified RoundingMode.
divide(int, int, RoundingMode) - Static method in class com.diffplug.common.math.IntMath
Returns the result of dividing p by q, rounding using the specified RoundingMode.
divide(long, long, RoundingMode) - Static method in class com.diffplug.common.math.LongMath
Returns the result of dividing p by q, rounding using the specified RoundingMode.
divide(int, int) - Static method in class com.diffplug.common.primitives.UnsignedInts
Returns dividend / divisor, where the dividend and divisor are treated as unsigned 32-bit quantities.
divide(long, long) - Static method in class com.diffplug.common.primitives.UnsignedLongs
Returns dividend / divisor, where the dividend and divisor are treated as unsigned 64-bit quantities.
dividedBy(UnsignedInteger) - Method in class com.diffplug.common.primitives.UnsignedInteger
Returns the result of dividing this by val.
dividedBy(UnsignedLong) - Method in class com.diffplug.common.primitives.UnsignedLong
Returns the result of dividing this by val.
DLE - Static variable in class com.diffplug.common.base.Ascii
Data Link Escape: A communication control character which will change the meaning of a limited number of contiguously following characters.
doBackward(B) - Method in class com.diffplug.common.base.Converter
Returns a representation of b as an instance of type A.
doEquivalent(T, T) - Method in class com.diffplug.common.base.Equivalence
Returns true if a and b are considered equivalent.
doForward(A) - Method in class com.diffplug.common.base.Converter
Returns a representation of a as an instance of type B.
doHash(T) - Method in class com.diffplug.common.base.Equivalence
Returns a hash code for non-null object t.
doNothing() - Static method in class com.diffplug.common.base.Consumers
A Consumer which does nothing.
doubleException(double) - Static method in exception com.diffplug.common.base.Unhandled
 
DoubleMath - Class in com.diffplug.common.math
A class for arithmetic on doubles that is not covered by Math.
Doubles - Class in com.diffplug.common.primitives
Static utility methods pertaining to double primitives, that are not already found in either Double or Arrays.
doubleValue() - Method in class com.diffplug.common.primitives.UnsignedInteger
Returns the value of this UnsignedInteger as a float, analogous to a widening primitive conversion from int to double, and correctly rounded.
doubleValue() - Method in class com.diffplug.common.primitives.UnsignedLong
Returns the value of this UnsignedLong as a double, analogous to a widening primitive conversion from long to double, and correctly rounded.
DurianPlugins - Class in com.diffplug.common.base
A programmatic and pluggable implementation of public static final.

E

Either<L,R> - Class in com.diffplug.common.base
A minimal implementation of Either.
elapsed(TimeUnit) - Method in class com.diffplug.common.base.Stopwatch
Returns the current elapsed time shown on this stopwatch, expressed in the desired time unit, with any fraction rounded down.
EM - Static variable in class com.diffplug.common.base.Ascii
End of Medium: A control character associated with the sent data which may be used to identify the physical end of the medium, or the end of the used, or wanted, portion of information recorded on a medium.
emptyToNull(String) - Static method in class com.diffplug.common.base.Strings
Returns the given string if it is nonempty; null otherwise.
encodedLength(CharSequence) - Static method in class com.diffplug.common.base.Utf8
Returns the number of bytes in the UTF-8-encoded form of sequence.
ENQ - Static variable in class com.diffplug.common.base.Ascii
Enquiry: A communication control character used in data communication systems as a request for a response from a remote station.
ensureCapacity(boolean[], int, int) - Static method in class com.diffplug.common.primitives.Booleans
Returns an array containing the same values as array, but guaranteed to be of a specified minimum length.
ensureCapacity(byte[], int, int) - Static method in class com.diffplug.common.primitives.Bytes
Returns an array containing the same values as array, but guaranteed to be of a specified minimum length.
ensureCapacity(char[], int, int) - Static method in class com.diffplug.common.primitives.Chars
Returns an array containing the same values as array, but guaranteed to be of a specified minimum length.
ensureCapacity(double[], int, int) - Static method in class com.diffplug.common.primitives.Doubles
Returns an array containing the same values as array, but guaranteed to be of a specified minimum length.
ensureCapacity(float[], int, int) - Static method in class com.diffplug.common.primitives.Floats
Returns an array containing the same values as array, but guaranteed to be of a specified minimum length.
ensureCapacity(int[], int, int) - Static method in class com.diffplug.common.primitives.Ints
Returns an array containing the same values as array, but guaranteed to be of a specified minimum length.
ensureCapacity(long[], int, int) - Static method in class com.diffplug.common.primitives.Longs
Returns an array containing the same values as array, but guaranteed to be of a specified minimum length.
ensureCapacity(short[], int, int) - Static method in class com.diffplug.common.primitives.Shorts
Returns an array containing the same values as array, but guaranteed to be of a specified minimum length.
enumException(Enum<?>) - Static method in exception com.diffplug.common.base.Unhandled
 
Enums - Class in com.diffplug.common.base
Utility methods for working with Enum instances.
EOT - Static variable in class com.diffplug.common.base.Ascii
End of Transmission: A communication control character used to indicate the conclusion of a transmission, which may have contained one or more texts and any associated headings.
equals(Object) - Method in class com.diffplug.common.base.Converter
Indicates whether another object is equal to this converter.
equals() - Static method in class com.diffplug.common.base.Equivalence
Returns an equivalence that delegates to Object.equals(java.lang.Object) and Object.hashCode().
equals(Object) - Method in class com.diffplug.common.base.Equivalence.Wrapper
Returns true if Equivalence.equivalent(Object, Object) applied to the wrapped references is true and both wrappers use the same equivalence.
equals(Object) - Method in class com.diffplug.common.primitives.UnsignedInteger
 
equals(Object) - Method in class com.diffplug.common.primitives.UnsignedLong
 
equalsIgnoreCase(CharSequence, CharSequence) - Static method in class com.diffplug.common.base.Ascii
Indicates whether the contents of the given character sequences s1 and s2 are equal, ignoring the case of any ASCII alphabetic characters between 'a' and 'z' or 'A' and 'Z' inclusive.
equalTo(T) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if the object being tested equals() the given target or both are null.
Equivalence<T> - Class in com.diffplug.common.base
A strategy for determining whether two instances are considered equivalent.
Equivalence() - Constructor for class com.diffplug.common.base.Equivalence
Constructor for use by subclasses.
Equivalence.Wrapper<T> - Class in com.diffplug.common.base
equivalent(T, T) - Method in class com.diffplug.common.base.Equivalence
Returns true if the given objects are considered equivalent.
equivalentTo(T) - Method in class com.diffplug.common.base.Equivalence
Returns a predicate that evaluates to true if and only if the input is equivalent to target according to this equivalence relation.
Errors - Class in com.diffplug.common.base
Converts functions which throw exceptions into functions that don’t by passing exceptions to an error policy.
Errors(Consumer<Throwable>) - Constructor for class com.diffplug.common.base.Errors
 
Errors.ConstrainedTo<E extends Throwable> - Class in com.diffplug.common.base
Generated by calling Errors.constrainTo(Class).
Errors.Handling - Class in com.diffplug.common.base
An Errors which is free to rethrow the exception, but it might not.
Errors.Plugins - Interface in com.diffplug.common.base
Namespace for the plugins which Errors supports.
Errors.Plugins.Dialog - Interface in com.diffplug.common.base
Plugin interface for Errors.dialog().
Errors.Plugins.Log - Interface in com.diffplug.common.base
Plugin interface for Errors.log().
Errors.Plugins.OnErrorThrowAssertion - Class in com.diffplug.common.base
An implementation of all of the Errors plugins which throws an AssertionError on any exception.
Errors.Rethrowing - Class in com.diffplug.common.base
An Errors which is guaranteed to always throw a RuntimeException.
Errors.WrappedAsRuntimeException - Exception in com.diffplug.common.base
A RuntimeException specifically for the purpose of wrapping non-runtime Throwables as RuntimeExceptions.
ESC - Static variable in class com.diffplug.common.base.Ascii
Escape: A control character intended to provide code extension (supplementary characters) in general information interchange.
ETB - Static variable in class com.diffplug.common.base.Ascii
End of Transmission Block: A communication control character used to indicate the end of a block of data for communication purposes.
ETX - Static variable in class com.diffplug.common.base.Ascii
End of Text: A communication control character used to terminate a sequence of characters started with STX and transmitted as an entity.

F

factorial(int) - Static method in class com.diffplug.common.math.BigIntegerMath
Returns n!, that is, the product of the first n positive integers, or 1 if n == 0.
factorial(int) - Static method in class com.diffplug.common.math.DoubleMath
Returns n!, that is, the product of the first n positive integers, 1 if n == 0, or n!, or Double.POSITIVE_INFINITY if n! > Double.MAX_VALUE.
factorial(int) - Static method in class com.diffplug.common.math.IntMath
Returns n!, that is, the product of the first n positive integers, 1 if n == 0, or Integer.MAX_VALUE if the result does not fit in a int.
factorial(int) - Static method in class com.diffplug.common.math.LongMath
Returns n!, that is, the product of the first n positive integers, 1 if n == 0, or Long.MAX_VALUE if the result does not fit in a long.
FF - Static variable in class com.diffplug.common.base.Ascii
Form Feed (‘\f’): A format effector which controls the movement of the printing position to the first pre-determined printing line on the next form or page.
FinalizablePhantomReference<T> - Class in com.diffplug.common.base
Phantom reference with a finalizeReferent() method which a background thread invokes after the garbage collector reclaims the referent.
FinalizablePhantomReference(T, FinalizableReferenceQueue) - Constructor for class com.diffplug.common.base.FinalizablePhantomReference
Constructs a new finalizable phantom reference.
FinalizableReference - Interface in com.diffplug.common.base
Implemented by references that have code to run after garbage collection of their referents.
FinalizableReferenceQueue - Class in com.diffplug.common.base
A reference queue with an associated background thread that dequeues references and invokes FinalizableReference.finalizeReferent() on them.
FinalizableReferenceQueue() - Constructor for class com.diffplug.common.base.FinalizableReferenceQueue
Constructs a new queue.
FinalizableSoftReference<T> - Class in com.diffplug.common.base
Soft reference with a finalizeReferent() method which a background thread invokes after the garbage collector reclaims the referent.
FinalizableSoftReference(T, FinalizableReferenceQueue) - Constructor for class com.diffplug.common.base.FinalizableSoftReference
Constructs a new finalizable soft reference.
FinalizableWeakReference<T> - Class in com.diffplug.common.base
Weak reference with a finalizeReferent() method which a background thread invokes after the garbage collector reclaims the referent.
FinalizableWeakReference(T, FinalizableReferenceQueue) - Constructor for class com.diffplug.common.base.FinalizableWeakReference
Constructs a new finalizable weak reference.
finalizeReferent() - Method in interface com.diffplug.common.base.FinalizableReference
Invoked on a background thread after the referent has been garbage collected unless security restrictions prevented starting a background thread, in which case this method is invoked when new references are created.
firstNonNull(T, T) - Static method in class com.diffplug.common.base.MoreObjects
Returns the first of two given parameters that is not null, if either is, or otherwise throws a NullPointerException.
fixedLength(int) - Static method in class com.diffplug.common.base.Splitter
Returns a splitter that divides strings into pieces of the given length.
floatException(float) - Static method in exception com.diffplug.common.base.Unhandled
 
Floats - Class in com.diffplug.common.primitives
Static utility methods pertaining to float primitives, that are not already found in either Float or Arrays.
floatValue() - Method in class com.diffplug.common.primitives.UnsignedInteger
Returns the value of this UnsignedInteger as a float, analogous to a widening primitive conversion from int to float, and correctly rounded.
floatValue() - Method in class com.diffplug.common.primitives.UnsignedLong
Returns the value of this UnsignedLong as a float, analogous to a widening primitive conversion from long to float, and correctly rounded.
fold(Function<? super L, ? extends T>, Function<? super R, ? extends T>) - Method in class com.diffplug.common.base.Either
Applies either the left or the right function as appropriate.
forMap(Map<K, V>) - Static method in class com.diffplug.common.base.Functions
Returns a function which performs a map lookup.
forMap(Map<K, ? extends V>, V) - Static method in class com.diffplug.common.base.Functions
Returns a function which performs a map lookup with a default value.
forPredicate(Predicate<? super Character>) - Static method in class com.diffplug.common.base.CharMatcher
Returns a matcher with identical behavior to the given Character-based predicate, but which operates on primitive char instances instead.
forPredicate(Predicate<T>) - Static method in class com.diffplug.common.base.Functions
Creates a function that returns the same boolean output as the given predicate for all inputs.
forSupplier(Supplier<T>) - Static method in class com.diffplug.common.base.Functions
Returns a function that always returns the result of invoking Supplier.get() on supplier, regardless of its input.
from(DoubleSupplier, DoubleConsumer) - Static method in interface com.diffplug.common.base.Box.Dbl
Creates a Box.Dbl from a DoubleSupplier and a DoubleConsumer.
from(Supplier<T>, Consumer<T>) - Static method in interface com.diffplug.common.base.Box
Creates a Box from a Supplier and a Consumer.
from(IntSupplier, IntConsumer) - Static method in interface com.diffplug.common.base.Box.Int
Creates a Box.Int from a IntSupplier and a IntConsumer.
from(LongSupplier, LongConsumer) - Static method in interface com.diffplug.common.base.Box.Lng
Creates a Box.Long from a LongSupplier and a LongConsumer.
from(Supplier<T>, Consumer<T>) - Static method in interface com.diffplug.common.base.Box.Nullable
Creates a Box.Nullable from a Supplier and a Consumer.
from(int) - Static method in enum com.diffplug.common.base.Comparison
Returns a Comparison from the given result of a call to Comparable.compareTo(Object) or Comparator.compare(Object, Object).
from(Function<? super A, ? extends B>, Function<? super B, ? extends A>) - Static method in class com.diffplug.common.base.Converter
Returns a converter based on existing forward and backward functions.
from(Function<? super A, ? extends B>, Function<? super B, ? extends A>, String) - Static method in class com.diffplug.common.base.Converter
Returns a converter based on existing forward and backward functions.
from(Function<? super A, ? extends B>, Function<? super B, ? extends A>) - Static method in interface com.diffplug.common.base.ConverterNullable
Delegates to ConverterNullable.from(Function, Function, String), passing forwardFunction.toString() as the name parameter.
from(Function<? super A, ? extends B>, Function<? super B, ? extends A>, String) - Static method in interface com.diffplug.common.base.ConverterNullable
Returns a converter based on existing forward and backward functions.
fromByteArray(byte[]) - Static method in class com.diffplug.common.primitives.Chars
Returns the char value whose big-endian representation is stored in the first 2 bytes of bytes; equivalent to ByteBuffer.wrap(bytes).getChar().
fromByteArray(byte[]) - Static method in class com.diffplug.common.primitives.Ints
Returns the int value whose big-endian representation is stored in the first 4 bytes of bytes; equivalent to ByteBuffer.wrap(bytes).getInt().
fromByteArray(byte[]) - Static method in class com.diffplug.common.primitives.Longs
Returns the long value whose big-endian representation is stored in the first 8 bytes of bytes; equivalent to ByteBuffer.wrap(bytes).getLong().
fromByteArray(byte[]) - Static method in class com.diffplug.common.primitives.Shorts
Returns the short value whose big-endian representation is stored in the first 2 bytes of bytes; equivalent to ByteBuffer.wrap(bytes).getShort().
fromBytes(byte, byte) - Static method in class com.diffplug.common.primitives.Chars
Returns the char value whose byte representation is the given 2 bytes, in big-endian order; equivalent to Chars.fromByteArray(new byte[] {b1, b2}).
fromBytes(byte, byte, byte, byte) - Static method in class com.diffplug.common.primitives.Ints
Returns the int value whose byte representation is the given 4 bytes, in big-endian order; equivalent to Ints.fromByteArray(new byte[] {b1, b2, b3, b4}).
fromBytes(byte, byte, byte, byte, byte, byte, byte, byte) - Static method in class com.diffplug.common.primitives.Longs
Returns the long value whose byte representation is the given 8 bytes, in big-endian order; equivalent to Longs.fromByteArray(new byte[] {b1, b2, b3, b4, b5, b6, b7, b8}).
fromBytes(byte, byte) - Static method in class com.diffplug.common.primitives.Shorts
Returns the short value whose byte representation is the given 2 bytes, in big-endian order; equivalent to Shorts.fromByteArray(new byte[] {b1, b2}).
fromIntBits(int) - Static method in class com.diffplug.common.primitives.UnsignedInteger
Returns an UnsignedInteger corresponding to a given bit representation.
fromLongBits(long) - Static method in class com.diffplug.common.primitives.UnsignedLong
Returns an UnsignedLong corresponding to a given bit representation.
FS - Static variable in class com.diffplug.common.base.Ascii
File Separator: These four information separators may be used within data in optional fashion, except that their hierarchical relationship shall be: FS is the most inclusive, then GS, then RS, and US is least inclusive.
Functions - Class in com.diffplug.common.base
Static utility methods pertaining to Function instances.
fuzzyCompare(double, double, double) - Static method in class com.diffplug.common.math.DoubleMath
Compares a and b “fuzzily,” with a tolerance for nearly-equal values.
fuzzyEquals(double, double, double) - Static method in class com.diffplug.common.math.DoubleMath
Returns true if a and b are within tolerance of each other.

G

gcd(int, int) - Static method in class com.diffplug.common.math.IntMath
Returns the greatest common divisor of a, b.
gcd(long, long) - Static method in class com.diffplug.common.math.LongMath
Returns the greatest common divisor of a, b.
get() - Method in interface com.diffplug.common.base.Box.Dbl
Deprecated.
Provided to satisfy Box<Double>; use Box.Dbl.getAsDouble() instead.
get() - Method in interface com.diffplug.common.base.Box.Int
Deprecated.
Provided to satisfy Box<Integer>; use Box.Int.getAsInt() instead.
get() - Method in interface com.diffplug.common.base.Box.Lng
Deprecated.
Provided to satisfy Box<Long> interface; use Box.Lng.getAsLong() instead.
get(Class<T>, T) - Static method in class com.diffplug.common.base.DurianPlugins
Returns an instance of pluginClass which is guaranteed to be identical throughout the runtime existence of this library.
get() - Method in class com.diffplug.common.base.Equivalence.Wrapper
Returns the (possibly null) reference wrapped by this instance.
get(Throwing.Supplier<T>) - Method in class com.diffplug.common.base.Errors.ConstrainedTo
Returns the value generated by the given supplier.
get(Throwing.Supplier<T>) - Method in class com.diffplug.common.base.Errors.Rethrowing
Attempts to call supplier and rethrows any exceptions as unchecked exceptions.
get() - Method in interface com.diffplug.common.base.Throwing.Specific.Supplier
 
getAsDouble() - Method in interface com.diffplug.common.base.Box.Dbl
 
getAsInt() - Method in interface com.diffplug.common.base.Box.Int
 
getAsLong() - Method in interface com.diffplug.common.base.Box.Lng
 
getCausalChain(Throwable) - Static method in class com.diffplug.common.base.Throwables
Gets a Throwable cause chain as a list.
getField(Enum<?>) - Static method in class com.diffplug.common.base.Enums
Returns the Field in which enumValue is defined.
getIfPresent(Class<T>, String) - Static method in class com.diffplug.common.base.Enums
Returns an optional enum constant for the given type, using Enum.valueOf(java.lang.Class<T>, java.lang.String).
getLeft() - Method in class com.diffplug.common.base.Either
Returns the left side.
getRight() - Method in class com.diffplug.common.base.Either
Returns the right side.
getRootCause(Throwable) - Static method in class com.diffplug.common.base.Throwables
Returns the innermost cause of throwable.
getStackTraceAsString(Throwable) - Static method in class com.diffplug.common.base.Throwables
Returns a string containing the result of toString(), followed by the full, recursive stack trace of throwable.
getWithDefault(Throwing.Supplier<T>, T) - Method in class com.diffplug.common.base.Errors.Handling
Attempts to call supplier and returns onFailure if an exception is thrown.
GS - Static variable in class com.diffplug.common.base.Ascii
Group Separator: These four information separators may be used within data in optional fashion, except that their hierarchical relationship shall be: FS is the most inclusive, then GS, then RS, and US is least inclusive.
GwtCompatible - Annotation Type in com.diffplug.common.annotations
The presence of this annotation on a type indicates that the type may be used with the Google Web Toolkit (GWT).
GwtIncompatible - Annotation Type in com.diffplug.common.annotations
The presence of this annotation on a method indicates that the method may not be used with the Google Web Toolkit (GWT), even though its type is annotated as GwtCompatible and accessible in GWT.

H

handler - Variable in class com.diffplug.common.base.Errors
 
Handling(Consumer<Throwable>) - Constructor for class com.diffplug.common.base.Errors.Handling
 
hash(T) - Method in class com.diffplug.common.base.Equivalence
Returns a hash code for t.
hashCode() - Method in class com.diffplug.common.base.Equivalence.Wrapper
Returns the result of Equivalence.hash(Object) applied to the wrapped reference.
hashCode(boolean) - Static method in class com.diffplug.common.primitives.Booleans
Returns a hash code for value; equal to the result of invoking ((Boolean) value).hashCode().
hashCode(byte) - Static method in class com.diffplug.common.primitives.Bytes
Returns a hash code for value; equal to the result of invoking ((Byte) value).hashCode().
hashCode(char) - Static method in class com.diffplug.common.primitives.Chars
Returns a hash code for value; equal to the result of invoking ((Character) value).hashCode().
hashCode(double) - Static method in class com.diffplug.common.primitives.Doubles
Returns a hash code for value; equal to the result of invoking ((Double) value).hashCode().
hashCode(float) - Static method in class com.diffplug.common.primitives.Floats
Returns a hash code for value; equal to the result of invoking ((Float) value).hashCode().
hashCode(int) - Static method in class com.diffplug.common.primitives.Ints
Returns a hash code for value; equal to the result of invoking ((Integer) value).hashCode().
hashCode(long) - Static method in class com.diffplug.common.primitives.Longs
Returns a hash code for value; equal to the result of invoking ((Long) value).hashCode().
hashCode(short) - Static method in class com.diffplug.common.primitives.Shorts
Returns a hash code for value; equal to the result of invoking ((Short) value).hashCode().
hashCode() - Method in class com.diffplug.common.primitives.UnsignedInteger
 
hashCode() - Method in class com.diffplug.common.primitives.UnsignedLong
 
HT - Static variable in class com.diffplug.common.base.Ascii
Horizontal Tabulation (‘\t’): A format effector which controls the movement of the printing position to the next in a series of predetermined positions along the printing line.

I

identity() - Static method in class com.diffplug.common.base.Converter
Returns a serializable converter that always converts or reverses an object to itself.
identity() - Static method in class com.diffplug.common.base.Equivalence
Returns an equivalence that uses == to compare values and System.identityHashCode(Object) to compute the hash code.
identity() - Static method in class com.diffplug.common.base.Functions
Returns the identity function.
ifLeft(Consumer<? super L>) - Method in class com.diffplug.common.base.Either
Performs the given action if this is a Left.
ifRight(Consumer<? super R>) - Method in class com.diffplug.common.base.Either
Performs the given action if this is a Right.
in(Collection<? extends T>) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if the object reference being tested is a member of the given collection.
indexIn(CharSequence) - Method in class com.diffplug.common.base.CharMatcher
Returns the index of the first matching character in a character sequence, or -1 if no matching character is present.
indexIn(CharSequence, int) - Method in class com.diffplug.common.base.CharMatcher
Returns the index of the first matching character in a character sequence, starting from a given position, or -1 if no character matches after that position.
indexOf(boolean[], boolean) - Static method in class com.diffplug.common.primitives.Booleans
Returns the index of the first appearance of the value target in array.
indexOf(boolean[], boolean[]) - Static method in class com.diffplug.common.primitives.Booleans
Returns the start position of the first occurrence of the specified target within array, or -1 if there is no such occurrence.
indexOf(byte[], byte) - Static method in class com.diffplug.common.primitives.Bytes
Returns the index of the first appearance of the value target in array.
indexOf(byte[], byte[]) - Static method in class com.diffplug.common.primitives.Bytes
Returns the start position of the first occurrence of the specified target within array, or -1 if there is no such occurrence.
indexOf(char[], char) - Static method in class com.diffplug.common.primitives.Chars
Returns the index of the first appearance of the value target in array.
indexOf(char[], char[]) - Static method in class com.diffplug.common.primitives.Chars
Returns the start position of the first occurrence of the specified target within array, or -1 if there is no such occurrence.
indexOf(double[], double) - Static method in class com.diffplug.common.primitives.Doubles
Returns the index of the first appearance of the value target in array.
indexOf(double[], double[]) - Static method in class com.diffplug.common.primitives.Doubles
Returns the start position of the first occurrence of the specified target within array, or -1 if there is no such occurrence.
indexOf(float[], float) - Static method in class com.diffplug.common.primitives.Floats
Returns the index of the first appearance of the value target in array.
indexOf(float[], float[]) - Static method in class com.diffplug.common.primitives.Floats
Returns the start position of the first occurrence of the specified target within array, or -1 if there is no such occurrence.
indexOf(int[], int) - Static method in class com.diffplug.common.primitives.Ints
Returns the index of the first appearance of the value target in array.
indexOf(int[], int[]) - Static method in class com.diffplug.common.primitives.Ints
Returns the start position of the first occurrence of the specified target within array, or -1 if there is no such occurrence.
indexOf(long[], long) - Static method in class com.diffplug.common.primitives.Longs
Returns the index of the first appearance of the value target in array.
indexOf(long[], long[]) - Static method in class com.diffplug.common.primitives.Longs
Returns the start position of the first occurrence of the specified target within array, or -1 if there is no such occurrence.
indexOf(short[], short) - Static method in class com.diffplug.common.primitives.Shorts
Returns the index of the first appearance of the value target in array.
indexOf(short[], short[]) - Static method in class com.diffplug.common.primitives.Shorts
Returns the start position of the first occurrence of the specified target within array, or -1 if there is no such occurrence.
inRange(char, char) - Static method in class com.diffplug.common.base.CharMatcher
Returns a char matcher that matches any character in a given range (both endpoints are inclusive).
instanceOf(Class<?>) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if the object being tested is an instance of the given class.
integerException(int) - Static method in exception com.diffplug.common.base.Unhandled
 
IntMath - Class in com.diffplug.common.math
A class for arithmetic on values of type int.
Ints - Class in com.diffplug.common.primitives
Static utility methods pertaining to int primitives, that are not already found in either Integer or Arrays.
intValue() - Method in class com.diffplug.common.primitives.UnsignedInteger
Returns the value of this UnsignedInteger as an int.
intValue() - Method in class com.diffplug.common.primitives.UnsignedLong
Returns the value of this UnsignedLong as an int.
INVISIBLE - Static variable in class com.diffplug.common.base.CharMatcher
Determines whether a character is invisible; that is, if its Unicode category is any of SPACE_SEPARATOR, LINE_SEPARATOR, PARAGRAPH_SEPARATOR, CONTROL, FORMAT, SURROGATE, and PRIVATE_USE according to ICU4J.
invisible() - Static method in class com.diffplug.common.base.CharMatcher
Determines whether a character is invisible; that is, if its Unicode category is any of SPACE_SEPARATOR, LINE_SEPARATOR, PARAGRAPH_SEPARATOR, CONTROL, FORMAT, SURROGATE, and PRIVATE_USE according to ICU4J.
is(char) - Static method in class com.diffplug.common.base.CharMatcher
Returns a char matcher that matches only one specified character.
isFinite(double) - Static method in class com.diffplug.common.primitives.Doubles
Returns true if value represents a real number.
isFinite(float) - Static method in class com.diffplug.common.primitives.Floats
Returns true if value represents a real number.
isLeft() - Method in class com.diffplug.common.base.Either
True if it’s left.
isLowerCase(char) - Static method in class com.diffplug.common.base.Ascii
Indicates whether c is one of the twenty-six lowercase ASCII alphabetic characters between 'a' and 'z' inclusive.
isMathematicalInteger(double) - Static method in class com.diffplug.common.math.DoubleMath
Returns true if x represents a mathematical integer.
isNot(char) - Static method in class com.diffplug.common.base.CharMatcher
Returns a char matcher that matches any character except the one specified.
isNull() - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if the object reference being tested is null.
isNullOrEmpty(String) - Static method in class com.diffplug.common.base.Strings
Returns true if the given string is null or is the empty string.
isPowerOfTwo(BigInteger) - Static method in class com.diffplug.common.math.BigIntegerMath
Returns true if x represents a power of two.
isPowerOfTwo(double) - Static method in class com.diffplug.common.math.DoubleMath
Returns true if x is exactly equal to 2^k for some finite integer k.
isPowerOfTwo(int) - Static method in class com.diffplug.common.math.IntMath
Returns true if x represents a power of two.
isPowerOfTwo(long) - Static method in class com.diffplug.common.math.LongMath
Returns true if x represents a power of two.
isRight() - Method in class com.diffplug.common.base.Either
True if it’s right.
isRunning() - Method in class com.diffplug.common.base.Stopwatch
Returns true if Stopwatch.start() has been called on this stopwatch, and Stopwatch.stop() has not been called since the last call to start().
isUpperCase(char) - Static method in class com.diffplug.common.base.Ascii
Indicates whether c is one of the twenty-six uppercase ASCII alphabetic characters between 'A' and 'Z' inclusive.
isWellFormed(byte[]) - Static method in class com.diffplug.common.base.Utf8
Returns true if bytes is a well-formed UTF-8 byte sequence according to Unicode 6.0.
isWellFormed(byte[], int, int) - Static method in class com.diffplug.common.base.Utf8
Returns whether the given byte array slice is a well-formed UTF-8 byte sequence, as defined by Utf8.isWellFormed(byte[]).
isWrapperType(Class<?>) - Static method in class com.diffplug.common.primitives.Primitives
Returns true if type is one of the nine primitive-wrapper types, such as Integer.

J

JAVA_DIGIT - Static variable in class com.diffplug.common.base.CharMatcher
Determines whether a character is a digit according to Java's definition.
JAVA_ISO_CONTROL - Static variable in class com.diffplug.common.base.CharMatcher
Determines whether a character is an ISO control character as specified by Character.isISOControl(char).
JAVA_LETTER - Static variable in class com.diffplug.common.base.CharMatcher
Determines whether a character is a letter according to Java's definition.
JAVA_LETTER_OR_DIGIT - Static variable in class com.diffplug.common.base.CharMatcher
Determines whether a character is a letter or digit according to Java's definition.
JAVA_LOWER_CASE - Static variable in class com.diffplug.common.base.CharMatcher
Determines whether a character is lower case according to Java's definition.
JAVA_UPPER_CASE - Static variable in class com.diffplug.common.base.CharMatcher
Determines whether a character is upper case according to Java's definition.
javaDigit() - Static method in class com.diffplug.common.base.CharMatcher
Determines whether a character is a digit according to Java's definition.
javaIsoControl() - Static method in class com.diffplug.common.base.CharMatcher
Determines whether a character is an ISO control character as specified by Character.isISOControl(char).
javaLetter() - Static method in class com.diffplug.common.base.CharMatcher
Determines whether a character is a letter according to Java's definition.
javaLetterOrDigit() - Static method in class com.diffplug.common.base.CharMatcher
Determines whether a character is a letter or digit according to Java's definition.
javaLowerCase() - Static method in class com.diffplug.common.base.CharMatcher
Determines whether a character is lower case according to Java's definition.
javaUpperCase() - Static method in class com.diffplug.common.base.CharMatcher
Determines whether a character is upper case according to Java's definition.
join(Iterable<?>) - Method in class com.diffplug.common.base.Joiner
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
join(Iterator<?>) - Method in class com.diffplug.common.base.Joiner
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
join(Object[]) - Method in class com.diffplug.common.base.Joiner
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
join(Object, Object, Object...) - Method in class com.diffplug.common.base.Joiner
Returns a string containing the string representation of each argument, using the previously configured separator between each.
join(Map<?, ?>) - Method in class com.diffplug.common.base.Joiner.MapJoiner
Returns a string containing the string representation of each entry of map, using the previously configured separator and key-value separator.
join(Iterable<? extends Map.Entry<?, ?>>) - Method in class com.diffplug.common.base.Joiner.MapJoiner
Returns a string containing the string representation of each entry in entries, using the previously configured separator and key-value separator.
join(Iterator<? extends Map.Entry<?, ?>>) - Method in class com.diffplug.common.base.Joiner.MapJoiner
Returns a string containing the string representation of each entry in entries, using the previously configured separator and key-value separator.
join(String, boolean...) - Static method in class com.diffplug.common.primitives.Booleans
Returns a string containing the supplied boolean values separated by separator.
join(String, char...) - Static method in class com.diffplug.common.primitives.Chars
Returns a string containing the supplied char values separated by separator.
join(String, double...) - Static method in class com.diffplug.common.primitives.Doubles
Returns a string containing the supplied double values, converted to strings as specified by Double.toString(double), and separated by separator.
join(String, float...) - Static method in class com.diffplug.common.primitives.Floats
Returns a string containing the supplied float values, converted to strings as specified by Float.toString(float), and separated by separator.
join(String, int...) - Static method in class com.diffplug.common.primitives.Ints
Returns a string containing the supplied int values separated by separator.
join(String, long...) - Static method in class com.diffplug.common.primitives.Longs
Returns a string containing the supplied long values separated by separator.
join(String, short...) - Static method in class com.diffplug.common.primitives.Shorts
Returns a string containing the supplied short values separated by separator.
join(String, byte...) - Static method in class com.diffplug.common.primitives.SignedBytes
Returns a string containing the supplied byte values separated by separator.
join(String, byte...) - Static method in class com.diffplug.common.primitives.UnsignedBytes
Returns a string containing the supplied byte values separated by separator.
join(String, int...) - Static method in class com.diffplug.common.primitives.UnsignedInts
Returns a string containing the supplied unsigned int values separated by separator.
join(String, long...) - Static method in class com.diffplug.common.primitives.UnsignedLongs
Returns a string containing the supplied unsigned long values separated by separator.
Joiner - Class in com.diffplug.common.base
An object which joins pieces of text (specified as an array, Iterable, varargs or even a Map) with a separator.
Joiner.MapJoiner - Class in com.diffplug.common.base
An object that joins map entries in the same manner as Joiner joins iterables and arrays.

K

key() - Method in enum com.diffplug.common.base.StandardSystemProperty
Returns the key used to lookup this system property.

L

lastIndexIn(CharSequence) - Method in class com.diffplug.common.base.CharMatcher
Returns the index of the last matching character in a character sequence, or -1 if no matching character is present.
lastIndexOf(boolean[], boolean) - Static method in class com.diffplug.common.primitives.Booleans
Returns the index of the last appearance of the value target in array.
lastIndexOf(byte[], byte) - Static method in class com.diffplug.common.primitives.Bytes
Returns the index of the last appearance of the value target in array.
lastIndexOf(char[], char) - Static method in class com.diffplug.common.primitives.Chars
Returns the index of the last appearance of the value target in array.
lastIndexOf(double[], double) - Static method in class com.diffplug.common.primitives.Doubles
Returns the index of the last appearance of the value target in array.
lastIndexOf(float[], float) - Static method in class com.diffplug.common.primitives.Floats
Returns the index of the last appearance of the value target in array.
lastIndexOf(int[], int) - Static method in class com.diffplug.common.primitives.Ints
Returns the index of the last appearance of the value target in array.
lastIndexOf(long[], long) - Static method in class com.diffplug.common.primitives.Longs
Returns the index of the last appearance of the value target in array.
lastIndexOf(short[], short) - Static method in class com.diffplug.common.primitives.Shorts
Returns the index of the last appearance of the value target in array.
lazyStackTrace(Throwable) - Static method in class com.diffplug.common.base.Throwables
Returns the stack trace of throwable, possibly providing slower iteration over the full trace but faster iteration over parts of the trace.
lazyStackTraceIsLazy() - Static method in class com.diffplug.common.base.Throwables
Returns whether Throwables.lazyStackTrace(java.lang.Throwable) will use the special implementation described in its documentation.
lesserEqualGreater(T, T, T) - Method in enum com.diffplug.common.base.Comparison
Returns the appropriate T based on the Comparison value.
lexicographicalComparator() - Static method in class com.diffplug.common.primitives.Booleans
Returns a comparator that compares two boolean arrays lexicographically.
lexicographicalComparator() - Static method in class com.diffplug.common.primitives.Chars
Returns a comparator that compares two char arrays lexicographically.
lexicographicalComparator() - Static method in class com.diffplug.common.primitives.Doubles
Returns a comparator that compares two double arrays lexicographically.
lexicographicalComparator() - Static method in class com.diffplug.common.primitives.Floats
Returns a comparator that compares two float arrays lexicographically.
lexicographicalComparator() - Static method in class com.diffplug.common.primitives.Ints
Returns a comparator that compares two int arrays lexicographically.
lexicographicalComparator() - Static method in class com.diffplug.common.primitives.Longs
Returns a comparator that compares two long arrays lexicographically.
lexicographicalComparator() - Static method in class com.diffplug.common.primitives.Shorts
Returns a comparator that compares two short arrays lexicographically.
lexicographicalComparator() - Static method in class com.diffplug.common.primitives.SignedBytes
Returns a comparator that compares two byte arrays lexicographically.
lexicographicalComparator() - Static method in class com.diffplug.common.primitives.UnsignedBytes
Returns a comparator that compares two byte arrays lexicographically.
lexicographicalComparator() - Static method in class com.diffplug.common.primitives.UnsignedInts
Returns a comparator that compares two arrays of unsigned int values lexicographically.
lexicographicalComparator() - Static method in class com.diffplug.common.primitives.UnsignedLongs
Returns a comparator that compares two arrays of unsigned long values lexicographically.
LF - Static variable in class com.diffplug.common.base.Ascii
Line Feed (‘\n’): A format effector which controls the movement of the printing position to the next printing line.
limit(int) - Method in class com.diffplug.common.base.Splitter
Returns a splitter that behaves equivalently to this splitter but stops splitting after it reaches the limit.
log() - Static method in class com.diffplug.common.base.Errors
Logs any exceptions.
log10(BigInteger, RoundingMode) - Static method in class com.diffplug.common.math.BigIntegerMath
Returns the base-10 logarithm of x, rounded according to the specified rounding mode.
log10(int, RoundingMode) - Static method in class com.diffplug.common.math.IntMath
Returns the base-10 logarithm of x, rounded according to the specified rounding mode.
log10(long, RoundingMode) - Static method in class com.diffplug.common.math.LongMath
Returns the base-10 logarithm of x, rounded according to the specified rounding mode.
log2(BigInteger, RoundingMode) - Static method in class com.diffplug.common.math.BigIntegerMath
Returns the base-2 logarithm of x, rounded according to the specified rounding mode.
log2(double) - Static method in class com.diffplug.common.math.DoubleMath
Returns the base 2 logarithm of a double value.
log2(double, RoundingMode) - Static method in class com.diffplug.common.math.DoubleMath
Returns the base 2 logarithm of a double value, rounded with the specified rounding mode to an int.
log2(int, RoundingMode) - Static method in class com.diffplug.common.math.IntMath
Returns the base-2 logarithm of x, rounded according to the specified rounding mode.
log2(long, RoundingMode) - Static method in class com.diffplug.common.math.LongMath
Returns the base-2 logarithm of x, rounded according to the specified rounding mode.
LongMath - Class in com.diffplug.common.math
A class for arithmetic on values of type long.
Longs - Class in com.diffplug.common.primitives
Static utility methods pertaining to long primitives, that are not already found in either Long or Arrays.
longValue() - Method in class com.diffplug.common.primitives.UnsignedInteger
Returns the value of this UnsignedInteger as a long.
longValue() - Method in class com.diffplug.common.primitives.UnsignedLong
Returns the value of this UnsignedLong as a long.

M

map(Converter<T, R>) - Method in interface com.diffplug.common.base.Box
Maps one Box to another Box, preserving any Box.modify(Function) concurrency guarantees of the underlying Box.
map(ConverterNullable<T, R>) - Method in interface com.diffplug.common.base.Box.Nullable
Maps one Box.Nullable to another Box.Nullable, preserving any Box.Nullable.modify(Function) concurrency guarantees of the underlying Box.
mapLeft(Function<? super L, ? extends T>) - Method in class com.diffplug.common.base.Either
 
mapRight(Function<? super R, ? extends T>) - Method in class com.diffplug.common.base.Either
 
matches(char) - Method in class com.diffplug.common.base.CharMatcher
Determines a true or false value for the given character.
matchesAllOf(CharSequence) - Method in class com.diffplug.common.base.CharMatcher
Returns true if a character sequence contains only matching characters.
matchesAnyOf(CharSequence) - Method in class com.diffplug.common.base.CharMatcher
Returns true if a character sequence contains at least one matching character.
matchesNoneOf(CharSequence) - Method in class com.diffplug.common.base.CharMatcher
Returns true if a character sequence contains no matching characters.
MAX - Static variable in class com.diffplug.common.base.Ascii
The maximum value of an ASCII character.
max(char...) - Static method in class com.diffplug.common.primitives.Chars
Returns the greatest value present in array.
max(double...) - Static method in class com.diffplug.common.primitives.Doubles
Returns the greatest value present in array, using the same rules of comparison as Math.max(double, double).
max(float...) - Static method in class com.diffplug.common.primitives.Floats
Returns the greatest value present in array, using the same rules of comparison as Math.max(float, float).
max(int...) - Static method in class com.diffplug.common.primitives.Ints
Returns the greatest value present in array.
max(long...) - Static method in class com.diffplug.common.primitives.Longs
Returns the greatest value present in array.
max(short...) - Static method in class com.diffplug.common.primitives.Shorts
Returns the greatest value present in array.
max(byte...) - Static method in class com.diffplug.common.primitives.SignedBytes
Returns the greatest value present in array.
max(byte...) - Static method in class com.diffplug.common.primitives.UnsignedBytes
Returns the greatest value present in array.
max(int...) - Static method in class com.diffplug.common.primitives.UnsignedInts
Returns the greatest value present in array, treating values as unsigned.
max(long...) - Static method in class com.diffplug.common.primitives.UnsignedLongs
Returns the greatest value present in array, treating values as unsigned.
MAX_POWER_OF_TWO - Static variable in class com.diffplug.common.primitives.Ints
The largest power of two that can be represented as an int.
MAX_POWER_OF_TWO - Static variable in class com.diffplug.common.primitives.Longs
The largest power of two that can be represented as a long.
MAX_POWER_OF_TWO - Static variable in class com.diffplug.common.primitives.Shorts
The largest power of two that can be represented as a short.
MAX_POWER_OF_TWO - Static variable in class com.diffplug.common.primitives.SignedBytes
The largest power of two that can be represented as a signed byte.
MAX_POWER_OF_TWO - Static variable in class com.diffplug.common.primitives.UnsignedBytes
The largest power of two that can be represented as an unsigned byte.
MAX_VALUE - Static variable in class com.diffplug.common.primitives.UnsignedBytes
The largest value that fits into an unsigned byte.
MAX_VALUE - Static variable in class com.diffplug.common.primitives.UnsignedInteger
 
MAX_VALUE - Static variable in class com.diffplug.common.primitives.UnsignedLong
 
MAX_VALUE - Static variable in class com.diffplug.common.primitives.UnsignedLongs
 
mean(double...) - Static method in class com.diffplug.common.math.DoubleMath
Returns the arithmetic mean of values.
mean(int...) - Static method in class com.diffplug.common.math.DoubleMath
Returns the arithmetic mean of values.
mean(long...) - Static method in class com.diffplug.common.math.DoubleMath
Returns the arithmetic mean of values.
mean(Iterable<? extends Number>) - Static method in class com.diffplug.common.math.DoubleMath
Returns the arithmetic mean of values.
mean(Iterator<? extends Number>) - Static method in class com.diffplug.common.math.DoubleMath
Returns the arithmetic mean of values.
mean(int, int) - Static method in class com.diffplug.common.math.IntMath
Returns the arithmetic mean of x and y, rounded towards negative infinity.
mean(long, long) - Static method in class com.diffplug.common.math.LongMath
Returns the arithmetic mean of x and y, rounded toward negative infinity.
memoize(Supplier<T>) - Static method in class com.diffplug.common.base.Suppliers
Returns a supplier which caches the instance retrieved during the first call to get() and returns that value on subsequent calls to get().
memoizeWithExpiration(Supplier<T>, long, TimeUnit) - Static method in class com.diffplug.common.base.Suppliers
Returns a supplier that caches the instance supplied by the delegate and removes the cached value after the specified time has passed.
MIN - Static variable in class com.diffplug.common.base.Ascii
The minimum value of an ASCII character.
min(char...) - Static method in class com.diffplug.common.primitives.Chars
Returns the least value present in array.
min(double...) - Static method in class com.diffplug.common.primitives.Doubles
Returns the least value present in array, using the same rules of comparison as Math.min(double, double).
min(float...) - Static method in class com.diffplug.common.primitives.Floats
Returns the least value present in array, using the same rules of comparison as Math.min(float, float).
min(int...) - Static method in class com.diffplug.common.primitives.Ints
Returns the least value present in array.
min(long...) - Static method in class com.diffplug.common.primitives.Longs
Returns the least value present in array.
min(short...) - Static method in class com.diffplug.common.primitives.Shorts
Returns the least value present in array.
min(byte...) - Static method in class com.diffplug.common.primitives.SignedBytes
Returns the least value present in array.
min(byte...) - Static method in class com.diffplug.common.primitives.UnsignedBytes
Returns the least value present in array.
min(int...) - Static method in class com.diffplug.common.primitives.UnsignedInts
Returns the least value present in array, treating values as unsigned.
min(long...) - Static method in class com.diffplug.common.primitives.UnsignedLongs
Returns the least value present in array, treating values as unsigned.
minus(UnsignedInteger) - Method in class com.diffplug.common.primitives.UnsignedInteger
Returns the result of subtracting this and val.
minus(UnsignedLong) - Method in class com.diffplug.common.primitives.UnsignedLong
Returns the result of subtracting this and val.
mod(int, int) - Static method in class com.diffplug.common.math.IntMath
Returns x mod m, a non-negative value less than m.
mod(long, int) - Static method in class com.diffplug.common.math.LongMath
Returns x mod m, a non-negative value less than m.
mod(long, long) - Static method in class com.diffplug.common.math.LongMath
Returns x mod m, a non-negative value less than m.
mod(UnsignedInteger) - Method in class com.diffplug.common.primitives.UnsignedInteger
Returns this mod val.
mod(UnsignedLong) - Method in class com.diffplug.common.primitives.UnsignedLong
Returns this modulo val.
modify(Function<? super T, ? extends T>) - Method in interface com.diffplug.common.base.Box
Performs a set() on the result of a get().
modify(Function<? super T, ? extends T>) - Method in interface com.diffplug.common.base.Box.Nullable
Shortcut for doing a set() on the result of a get().
MoreObjects - Class in com.diffplug.common.base
Helper functions that operate on any Object, and are not already provided in Objects.
MoreObjects.ToStringHelper - Class in com.diffplug.common.base

N

NAK - Static variable in class com.diffplug.common.base.Ascii
Negative Acknowledge: A communication control character transmitted by a receiver as a negative response to the sender.
negate() - Method in class com.diffplug.common.base.CharMatcher
Returns a matcher that matches any character not matched by this matcher.
NL - Static variable in class com.diffplug.common.base.Ascii
Alternate name for Ascii.LF.
NONE - Static variable in class com.diffplug.common.base.CharMatcher
Matches no characters.
none() - Static method in class com.diffplug.common.base.CharMatcher
Matches no characters.
noneOf(CharSequence) - Static method in class com.diffplug.common.base.CharMatcher
Returns a char matcher that matches any character not present in the given character sequence.
not(Predicate<T>) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if the given predicate evaluates to false.
notNull() - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if the object reference being tested is not null.
NUL - Static variable in class com.diffplug.common.base.Ascii
Null (‘\0’): The all-zeros character which may serve to accomplish time fill and media fill.
nullToEmpty(String) - Static method in class com.diffplug.common.base.Strings
Returns the given string if it is non-null; the empty string otherwise.

O

objectException(Object) - Static method in exception com.diffplug.common.base.Unhandled
 
of(double) - Static method in interface com.diffplug.common.base.Box.Dbl
Creates a Box.Dbl holding the given value in a non-volatile field.
of(int) - Static method in interface com.diffplug.common.base.Box.Int
Creates a Box.Int holding the given value in a non-volatile field.
of(long) - Static method in interface com.diffplug.common.base.Box.Lng
Creates a Box.Long holding the given value in a non-volatile field.
of(T) - Static method in interface com.diffplug.common.base.Box.Nullable
Creates a Box.Nullable holding the given possibly-null value in a non-volatile field.
of(T) - Static method in interface com.diffplug.common.base.Box
Creates a Box holding the given value in a non-volatile field.
ofInstance(T) - Static method in class com.diffplug.common.base.Suppliers
Returns a supplier that always supplies instance.
ofNull() - Static method in interface com.diffplug.common.base.Box.Nullable
Creates a Box.Nullable holding null value in a non-volatile field.
ofVolatile(T) - Static method in interface com.diffplug.common.base.Box.Nullable
Creates a Box holding the given value in a volatile field.
ofVolatile(T) - Static method in interface com.diffplug.common.base.Box
Creates a Box holding the given value in a volatile field.
ofVolatileNull() - Static method in interface com.diffplug.common.base.Box.Nullable
Creates a Box.Nullable holding the null value in a volatile field.
omitEmptyStrings() - Method in class com.diffplug.common.base.Splitter
Returns a splitter that behaves equivalently to this splitter, but automatically omits empty strings from the results.
omitNullValues() - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Configures the MoreObjects.ToStringHelper so MoreObjects.ToStringHelper.toString() will ignore properties with null value.
on(String) - Static method in class com.diffplug.common.base.Joiner
Returns a joiner which automatically places separator between consecutive elements.
on(char) - Static method in class com.diffplug.common.base.Joiner
Returns a joiner which automatically places separator between consecutive elements.
on(char) - Static method in class com.diffplug.common.base.Splitter
Returns a splitter that uses the given single-character separator.
on(CharMatcher) - Static method in class com.diffplug.common.base.Splitter
Returns a splitter that considers any single character matched by the given CharMatcher to be a separator.
on(String) - Static method in class com.diffplug.common.base.Splitter
Returns a splitter that uses the given fixed string as a separator.
on(Pattern) - Static method in class com.diffplug.common.base.Splitter
Returns a splitter that considers any subsequence matching pattern to be a separator.
ONE - Static variable in class com.diffplug.common.primitives.UnsignedInteger
 
ONE - Static variable in class com.diffplug.common.primitives.UnsignedLong
 
OnErrorThrowAssertion() - Constructor for class com.diffplug.common.base.Errors.Plugins.OnErrorThrowAssertion
 
onPattern(String) - Static method in class com.diffplug.common.base.Splitter
Returns a splitter that considers any subsequence matching a given pattern (regular expression) to be a separator.
onResultOf(Function<F, ? extends T>) - Method in class com.diffplug.common.base.Equivalence
Returns a new equivalence relation for F which evaluates equivalence by first applying function to the argument, then evaluating using this.
or(CharMatcher) - Method in class com.diffplug.common.base.CharMatcher
Returns a matcher that matches any character matched by either this matcher or other.
or(Iterable<? extends Predicate<? super T>>) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if any one of its components evaluates to true.
or(Predicate<? super T>...) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if any one of its components evaluates to true.
or(Predicate<? super T>, Predicate<? super T>) - Static method in class com.diffplug.common.base.Predicates
Returns a predicate that evaluates to true if either of its components evaluates to true.

P

padEnd(String, int, char) - Static method in class com.diffplug.common.base.Strings
Returns a string, of length at least minLength, consisting of string appended with as many copies of padChar as are necessary to reach that length.
padStart(String, int, char) - Static method in class com.diffplug.common.base.Strings
Returns a string, of length at least minLength, consisting of string prepended with as many copies of padChar as are necessary to reach that length.
pairwise() - Method in class com.diffplug.common.base.Equivalence
Returns an equivalence over iterables based on the equivalence of their elements.
parseUnsignedByte(String) - Static method in class com.diffplug.common.primitives.UnsignedBytes
Returns the unsigned byte value represented by the given decimal string.
parseUnsignedByte(String, int) - Static method in class com.diffplug.common.primitives.UnsignedBytes
Returns the unsigned byte value represented by a string with the given radix.
parseUnsignedInt(String) - Static method in class com.diffplug.common.primitives.UnsignedInts
Returns the unsigned int value represented by the given decimal string.
parseUnsignedInt(String, int) - Static method in class com.diffplug.common.primitives.UnsignedInts
Returns the unsigned int value represented by a string with the given radix.
parseUnsignedLong(String) - Static method in class com.diffplug.common.primitives.UnsignedLongs
Returns the unsigned long value represented by the given decimal string.
parseUnsignedLong(String, int) - Static method in class com.diffplug.common.primitives.UnsignedLongs
Returns the unsigned long value represented by a string with the given radix.
plus(UnsignedInteger) - Method in class com.diffplug.common.primitives.UnsignedInteger
Returns the result of adding this and val.
plus(UnsignedLong) - Method in class com.diffplug.common.primitives.UnsignedLong
Returns the result of adding this and val.
pow(int, int) - Static method in class com.diffplug.common.math.IntMath
Returns b to the kth power.
pow(long, int) - Static method in class com.diffplug.common.math.LongMath
Returns b to the kth power.
precomputed() - Method in class com.diffplug.common.base.CharMatcher
Returns a char matcher functionally equivalent to this one, but which may be faster to query than the original; your mileage may vary.
Preconditions - Class in com.diffplug.common.base
Static convenience methods that help a method or constructor check whether it was invoked correctly (whether its preconditions have been met).
Predicates - Class in com.diffplug.common.base
Static utility methods pertaining to Predicate instances.
Primitives - Class in com.diffplug.common.primitives
Contains static utility methods pertaining to primitive types and their corresponding wrapper types.
print(String) - Method in class com.diffplug.common.base.StringPrinter
Prints the string.
println(String) - Method in class com.diffplug.common.base.StringPrinter
Prints the string and a newline (always ‘\n’).
propagate(Throwable) - Static method in class com.diffplug.common.base.Throwables
Propagates throwable as-is if it is an instance of RuntimeException or Error, or else as a last resort, wraps it in a RuntimeException and then propagates.
propagateIfInstanceOf(Throwable, Class<X>) - Static method in class com.diffplug.common.base.Throwables
Propagates throwable exactly as-is, if and only if it is an instance of declaredType.
propagateIfPossible(Throwable) - Static method in class com.diffplug.common.base.Throwables
Propagates throwable exactly as-is, if and only if it is an instance of RuntimeException or Error.
propagateIfPossible(Throwable, Class<X>) - Static method in class com.diffplug.common.base.Throwables
Propagates throwable exactly as-is, if and only if it is an instance of RuntimeException, Error, or declaredType.
propagateIfPossible(Throwable, Class<X1>, Class<X2>) - Static method in class com.diffplug.common.base.Throwables
Propagates throwable exactly as-is, if and only if it is an instance of RuntimeException, Error, declaredType1, or declaredType2.
PROPERTY_PREFIX - Static variable in class com.diffplug.common.base.DurianPlugins
Prefix to system property keys for specifying plugin classes.

R

read() - Method in class com.diffplug.common.base.Ticker
Returns the number of nanoseconds elapsed since this ticker’s fixed point of reference.
redirectable(Supplier<Consumer<T>>) - Static method in class com.diffplug.common.base.Consumers
Creates a Consumer which delegates every call to whatever Consumer is supplied by Supplier<Consumer> target.
register(Class<T>, T) - Static method in class com.diffplug.common.base.DurianPlugins
Registers an implementation as a global override of any injected or default implementations.
remainder(int, int) - Static method in class com.diffplug.common.primitives.UnsignedInts
Returns dividend % divisor, where the dividend and divisor are treated as unsigned 32-bit quantities.
remainder(long, long) - Static method in class com.diffplug.common.primitives.UnsignedLongs
Returns dividend % divisor, where the dividend and divisor are treated as unsigned 64-bit quantities.
removeFrom(CharSequence) - Method in class com.diffplug.common.base.CharMatcher
Returns a string containing all non-matching characters of a character sequence, in order.
repeat(String, int) - Static method in class com.diffplug.common.base.Strings
Returns a string consisting of a specific number of concatenated copies of an input string.
replaceFrom(CharSequence, char) - Method in class com.diffplug.common.base.CharMatcher
Returns a string copy of the input character sequence, with each character that matches this matcher replaced by a given replacement character.
replaceFrom(CharSequence, CharSequence) - Method in class com.diffplug.common.base.CharMatcher
Returns a string copy of the input character sequence, with each character that matches this matcher replaced by a given replacement sequence.
reset() - Method in class com.diffplug.common.base.Stopwatch
Sets the elapsed time for this stopwatch to zero, and places it in a stopped state.
retainFrom(CharSequence) - Method in class com.diffplug.common.base.CharMatcher
Returns a string containing all matching characters of a character sequence, in order.
rethrow() - Static method in class com.diffplug.common.base.Errors
Rethrows any exceptions as runtime exceptions.
Rethrowing(Function<Throwable, RuntimeException>) - Constructor for class com.diffplug.common.base.Errors.Rethrowing
 
reverse() - Method in class com.diffplug.common.base.Converter
Returns the reversed view of this converter, which converts this.convert(a) back to a value roughly equivalent to a.
reverse() - Method in interface com.diffplug.common.base.ConverterNullable
Returns the reversed view of this converter, where the ConverterNullable.convert(Object) and ConverterNullable.revert(Object) methods are swapped.
revert(B) - Method in class com.diffplug.common.base.Converter
Returns a representation of b as an instance of type A.
revert(B) - Method in interface com.diffplug.common.base.ConverterNullable
Returns a representation of b as an instance of type A.
revertNonNull(B) - Method in class com.diffplug.common.base.Converter
Returns a representation of b as an instance of type A, using the type system (and not null checks) to ensure that input and output are non-null.
roundToBigInteger(double, RoundingMode) - Static method in class com.diffplug.common.math.DoubleMath
Returns the BigInteger value that is equal to x rounded with the specified rounding mode, if possible.
roundToInt(double, RoundingMode) - Static method in class com.diffplug.common.math.DoubleMath
Returns the int value that is equal to x rounded with the specified rounding mode, if possible.
roundToLong(double, RoundingMode) - Static method in class com.diffplug.common.math.DoubleMath
Returns the long value that is equal to x rounded with the specified rounding mode, if possible.
RS - Static variable in class com.diffplug.common.base.Ascii
Record Separator: These four information separators may be used within data in optional fashion, except that their hierarchical relationship shall be: FS is the most inclusive, then GS, then RS, and US is least inclusive.
run(Throwing.Runnable) - Method in class com.diffplug.common.base.Errors.ConstrainedTo
Runs the given runnable.
run(Throwing.Runnable) - Method in class com.diffplug.common.base.Errors
Attempts to run the given runnable.
run() - Method in interface com.diffplug.common.base.Throwing.Specific.Runnable
 

S

saturatedCast(long) - Static method in class com.diffplug.common.primitives.Chars
Returns the char nearest in value to value.
saturatedCast(long) - Static method in class com.diffplug.common.primitives.Ints
Returns the int nearest in value to value.
saturatedCast(long) - Static method in class com.diffplug.common.primitives.Shorts
Returns the short nearest in value to value.
saturatedCast(long) - Static method in class com.diffplug.common.primitives.SignedBytes
Returns the byte nearest in value to value.
saturatedCast(long) - Static method in class com.diffplug.common.primitives.UnsignedBytes
Returns the byte value that, when treated as unsigned, is nearest in value to value.
set(double) - Method in interface com.diffplug.common.base.Box.Dbl
Sets the value which will later be returned by get().
set(Double) - Method in interface com.diffplug.common.base.Box.Dbl
Deprecated.
Provided to satisfy Box<Double>; use Box.Dbl.set(double) instead.
set(int) - Method in interface com.diffplug.common.base.Box.Int
Sets the value which will later be returned by Box.Int.getAsInt().
set(Integer) - Method in interface com.diffplug.common.base.Box.Int
Deprecated.
Provided to satisfy Box<Integer>; use Box.Int.set(int) instead.
set(long) - Method in interface com.diffplug.common.base.Box.Lng
Sets the value which will later be returned by Box.Lng.getAsLong().
set(Long) - Method in interface com.diffplug.common.base.Box.Lng
Deprecated.
Provided to satisfy Box<Long> interface; use Box.Lng.set(long) instead.
set(T) - Method in interface com.diffplug.common.base.Box.Nullable
Sets the value which will later be returned by get().
set(T) - Method in interface com.diffplug.common.base.Box
Sets the value which will later be returned by get().
shortException(short) - Static method in exception com.diffplug.common.base.Unhandled
 
Shorts - Class in com.diffplug.common.primitives
Static utility methods pertaining to short primitives, that are not already found in either Short or Arrays.
SI - Static variable in class com.diffplug.common.base.Ascii
Shift In: A control character indicating that the code combinations which follow shall be interpreted according to the standard code table.
SignedBytes - Class in com.diffplug.common.primitives
Static utility methods pertaining to byte primitives that interpret values as signed.
SINGLE_WIDTH - Static variable in class com.diffplug.common.base.CharMatcher
Determines whether a character is single-width (not double-width).
singleWidth() - Static method in class com.diffplug.common.base.CharMatcher
Determines whether a character is single-width (not double-width).
skipNulls() - Method in class com.diffplug.common.base.Joiner
Returns a joiner with the same behavior as this joiner, except automatically skipping over any provided null elements.
SO - Static variable in class com.diffplug.common.base.Ascii
Shift Out: A control character indicating that the code combinations which follow shall be interpreted as outside of the character set of the standard code table until a Shift In character is reached.
SOH - Static variable in class com.diffplug.common.base.Ascii
Start of Heading: A communication control character used at the beginning of a sequence of characters which constitute a machine-sensible address or routing information.
SP - Static variable in class com.diffplug.common.base.Ascii
Space: A normally non-printing graphic character used to separate words.
SPACE - Static variable in class com.diffplug.common.base.Ascii
Alternate name for Ascii.SP.
split(CharSequence) - Method in class com.diffplug.common.base.Splitter.MapSplitter
Splits sequence into substrings, splits each substring into an entry, and returns an unmodifiable map with each of the entries.
split(CharSequence) - Method in class com.diffplug.common.base.Splitter
Splits sequence into string components and makes them available through an Iterator, which may be lazily evaluated.
Splitter - Class in com.diffplug.common.base
Extracts non-overlapping substrings from an input string, typically by recognizing appearances of a separator sequence.
Splitter.MapSplitter - Class in com.diffplug.common.base
An object that splits strings into maps as Splitter splits iterables and lists.
splitToList(CharSequence) - Method in class com.diffplug.common.base.Splitter
Splits sequence into string components and returns them as an immutable list.
sqrt(BigInteger, RoundingMode) - Static method in class com.diffplug.common.math.BigIntegerMath
Returns the square root of x, rounded with the specified rounding mode.
sqrt(int, RoundingMode) - Static method in class com.diffplug.common.math.IntMath
Returns the square root of x, rounded with the specified rounding mode.
sqrt(long, RoundingMode) - Static method in class com.diffplug.common.math.LongMath
Returns the square root of x, rounded with the specified rounding mode.
StandardSystemProperty - Enum in com.diffplug.common.base
start() - Method in class com.diffplug.common.base.Stopwatch
Starts the stopwatch.
stop() - Method in class com.diffplug.common.base.Stopwatch
Stops the stopwatch.
Stopwatch - Class in com.diffplug.common.base
An object that measures elapsed time in nanoseconds.
stringConverter(Class<T>) - Static method in class com.diffplug.common.base.Enums
Returns a converter that converts between strings and enum values of type enumClass using Enum.valueOf(Class, String) and Enum.name().
stringConverter() - Static method in class com.diffplug.common.primitives.Doubles
Returns a serializable converter object that converts between strings and doubles using Double.valueOf(java.lang.String) and Double.toString().
stringConverter() - Static method in class com.diffplug.common.primitives.Floats
Returns a serializable converter object that converts between strings and floats using Float.valueOf(java.lang.String) and Float.toString().
stringConverter() - Static method in class com.diffplug.common.primitives.Ints
Returns a serializable converter object that converts between strings and integers using Integer.decode(java.lang.String) and Integer.toString().
stringConverter() - Static method in class com.diffplug.common.primitives.Longs
Returns a serializable converter object that converts between strings and longs using Long.decode(java.lang.String) and Long.toString().
stringConverter() - Static method in class com.diffplug.common.primitives.Shorts
Returns a serializable converter object that converts between strings and shorts using Short.decode(java.lang.String) and Short.toString().
stringException(String) - Static method in exception com.diffplug.common.base.Unhandled
 
StringPrinter - Class in com.diffplug.common.base
Pipes strings to a Consumer<String> through an API which unifies OutputStream, PrintStream, Writer, and PrintWriter.
StringPrinter(Consumer<String>) - Constructor for class com.diffplug.common.base.StringPrinter
StringPrinter will pass all the strings it receives to the given consumer.
Strings - Class in com.diffplug.common.base
Static utility methods pertaining to String or CharSequence instances.
stringsToLines(Consumer<String>) - Static method in class com.diffplug.common.base.StringPrinter
Given a consumer of lines, creates a stateful consumer of strings which will combine its input until it finds a newline, and split its input when it contains multiple newlines.
STX - Static variable in class com.diffplug.common.base.Ascii
Start of Text: A communication control character which precedes a sequence of characters that is to be treated as an entity and entirely transmitted through to the ultimate destination.
SUB - Static variable in class com.diffplug.common.base.Ascii
Substitute: A character that may be substituted for a character which is determined to be invalid or in error.
supplierFunction() - Static method in class com.diffplug.common.base.Suppliers
Returns a function that accepts a supplier and returns the result of invoking Supplier.get() on that supplier.
Suppliers - Class in com.diffplug.common.base
Useful suppliers.
suppress() - Static method in class com.diffplug.common.base.Errors
Suppresses errors entirely.
SYN - Static variable in class com.diffplug.common.base.Ascii
Synchronous Idle: A communication control character used by a synchronous transmission system in the absence of any other character to provide a signal from which synchronism may be achieved or retained.
synchronizedSupplier(Supplier<T>) - Static method in class com.diffplug.common.base.Suppliers
Returns a supplier whose get() method synchronizes on delegate before calling it, making it thread-safe.
systemErr() - Static method in class com.diffplug.common.base.StringPrinter
Creates a StringPrinter directed at System.err.
systemOut() - Static method in class com.diffplug.common.base.StringPrinter
Creates a StringPrinter directed at System.out.
systemTicker() - Static method in class com.diffplug.common.base.Ticker
A ticker that reads the current time using System.nanoTime().

T

test(Character) - Method in class com.diffplug.common.base.CharMatcher
Deprecated.
Provided only to satisfy the Predicate interface; use CharMatcher.matches(char) instead.
test(T) - Method in interface com.diffplug.common.base.Throwing.Specific.Predicate
 
Throwables - Class in com.diffplug.common.base
Static utility methods pertaining to instances of Throwable.
Throwing - Class in com.diffplug.common.base
Variations on the standard functional interfaces which throw Throwable.
Throwing.BiConsumer<T,U> - Interface in com.diffplug.common.base
 
Throwing.BiFunction<T,U,R> - Interface in com.diffplug.common.base
 
Throwing.BiPredicate<T,U> - Interface in com.diffplug.common.base
 
Throwing.Consumer<T> - Interface in com.diffplug.common.base
 
Throwing.Function<T,R> - Interface in com.diffplug.common.base
 
Throwing.Predicate<T> - Interface in com.diffplug.common.base
 
Throwing.Runnable - Interface in com.diffplug.common.base
 
Throwing.Specific - Interface in com.diffplug.common.base
Variations on the standard functional interfaces which throw a specific subclass of Throwable.
Throwing.Specific.BiConsumer<T,U,E extends Throwable> - Interface in com.diffplug.common.base
 
Throwing.Specific.BiFunction<T,U,R,E extends Throwable> - Interface in com.diffplug.common.base
 
Throwing.Specific.BiPredicate<T,U,E extends Throwable> - Interface in com.diffplug.common.base
 
Throwing.Specific.Consumer<T,E extends Throwable> - Interface in com.diffplug.common.base
 
Throwing.Specific.Function<T,R,E extends Throwable> - Interface in com.diffplug.common.base
 
Throwing.Specific.Predicate<T,E extends Throwable> - Interface in com.diffplug.common.base
 
Throwing.Specific.Runnable<E extends Throwable> - Interface in com.diffplug.common.base
 
Throwing.Specific.Supplier<T,E extends Throwable> - Interface in com.diffplug.common.base
 
Throwing.Supplier<T> - Interface in com.diffplug.common.base
 
Ticker - Class in com.diffplug.common.base
A time source; returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time.
Ticker() - Constructor for class com.diffplug.common.base.Ticker
Constructor for use by subclasses.
times(UnsignedInteger) - Method in class com.diffplug.common.primitives.UnsignedInteger
Returns the result of multiplying this and val.
times(UnsignedLong) - Method in class com.diffplug.common.primitives.UnsignedLong
Returns the result of multiplying this and val.
to(CaseFormat, String) - Method in enum com.diffplug.common.base.CaseFormat
Converts the specified String str from this format to the specified format.
toArray(Collection<Boolean>) - Static method in class com.diffplug.common.primitives.Booleans
Copies a collection of Boolean instances into a new array of primitive boolean values.
toArray(Collection<? extends Number>) - Static method in class com.diffplug.common.primitives.Bytes
Returns an array containing each value of collection, converted to a byte value in the manner of Number.byteValue().
toArray(Collection<Character>) - Static method in class com.diffplug.common.primitives.Chars
Copies a collection of Character instances into a new array of primitive char values.
toArray(Collection<? extends Number>) - Static method in class com.diffplug.common.primitives.Doubles
Returns an array containing each value of collection, converted to a double value in the manner of Number.doubleValue().
toArray(Collection<? extends Number>) - Static method in class com.diffplug.common.primitives.Floats
Returns an array containing each value of collection, converted to a float value in the manner of Number.floatValue().
toArray(Collection<? extends Number>) - Static method in class com.diffplug.common.primitives.Ints
Returns an array containing each value of collection, converted to a int value in the manner of Number.intValue().
toArray(Collection<? extends Number>) - Static method in class com.diffplug.common.primitives.Longs
Returns an array containing each value of collection, converted to a long value in the manner of Number.longValue().
toArray(Collection<? extends Number>) - Static method in class com.diffplug.common.primitives.Shorts
Returns an array containing each value of collection, converted to a short value in the manner of Number.shortValue().
toByteArray(char) - Static method in class com.diffplug.common.primitives.Chars
Returns a big-endian representation of value in a 2-element byte array; equivalent to ByteBuffer.allocate(2).putChar(value).array().
toByteArray(int) - Static method in class com.diffplug.common.primitives.Ints
Returns a big-endian representation of value in a 4-element byte array; equivalent to ByteBuffer.allocate(4).putInt(value).array().
toByteArray(long) - Static method in class com.diffplug.common.primitives.Longs
Returns a big-endian representation of value in an 8-element byte array; equivalent to ByteBuffer.allocate(8).putLong(value).array().
toByteArray(short) - Static method in class com.diffplug.common.primitives.Shorts
Returns a big-endian representation of value in a 2-element byte array; equivalent to ByteBuffer.allocate(2).putShort(value).array().
toInt(byte) - Static method in class com.diffplug.common.primitives.UnsignedBytes
Returns the value of the given byte as an integer, when treated as unsigned.
toLong(int) - Static method in class com.diffplug.common.primitives.UnsignedInts
Returns the value of the given int as a long, when treated as unsigned.
toLowerCase(String) - Static method in class com.diffplug.common.base.Ascii
Returns a copy of the input string in which all uppercase ASCII characters have been converted to lowercase.
toLowerCase(CharSequence) - Static method in class com.diffplug.common.base.Ascii
Returns a copy of the input character sequence in which all uppercase ASCII characters have been converted to lowercase.
toLowerCase(char) - Static method in class com.diffplug.common.base.Ascii
If the argument is an uppercase ASCII character returns the lowercase equivalent.
toOutputStream() - Method in class com.diffplug.common.base.StringPrinter
Calls StringPrinter.toOutputStream(Charset) with charset=UTF-8.
toOutputStream(Charset) - Method in class com.diffplug.common.base.StringPrinter
Creates an OutputStream which will print its content to this StringPrinter, encoding bytes according to the given Charset.
toPrintStream() - Method in class com.diffplug.common.base.StringPrinter
Calls StringPrinter.toPrintStream(Charset) with charset=UTF-8.
toPrintStream(Charset) - Method in class com.diffplug.common.base.StringPrinter
Creates a PrintStream of the given charset, which passes its content to this StringPrinter.
toPrintWriter() - Method in class com.diffplug.common.base.StringPrinter
Creates a PrintWriter which passes its content to this StringPrinter.
toString() - Method in class com.diffplug.common.base.CharMatcher
Returns a string representation of this CharMatcher, such as CharMatcher.or(WHITESPACE, JAVA_DIGIT).
toString() - Method in class com.diffplug.common.base.Equivalence.Wrapper
Returns a string representation for this equivalence wrapper.
toString() - Method in class com.diffplug.common.base.MoreObjects.ToStringHelper
Returns a string in the format specified by MoreObjects.toStringHelper(Object).
toString() - Method in enum com.diffplug.common.base.StandardSystemProperty
Returns a string representation of this system property.
toString() - Method in class com.diffplug.common.base.Stopwatch
Returns a string representation of the current elapsed time.
toString(byte) - Static method in class com.diffplug.common.primitives.UnsignedBytes
Returns a string representation of x, where x is treated as unsigned.
toString(byte, int) - Static method in class com.diffplug.common.primitives.UnsignedBytes
Returns a string representation of x for the given radix, where x is treated as unsigned.
toString() - Method in class com.diffplug.common.primitives.UnsignedInteger
Returns a string representation of the UnsignedInteger value, in base 10.
toString(int) - Method in class com.diffplug.common.primitives.UnsignedInteger
Returns a string representation of the UnsignedInteger value, in base radix.
toString(int) - Static method in class com.diffplug.common.primitives.UnsignedInts
Returns a string representation of x, where x is treated as unsigned.
toString(int, int) - Static method in class com.diffplug.common.primitives.UnsignedInts
Returns a string representation of x for the given radix, where x is treated as unsigned.
toString() - Method in class com.diffplug.common.primitives.UnsignedLong
Returns a string representation of the UnsignedLong value, in base 10.
toString(int) - Method in class com.diffplug.common.primitives.UnsignedLong
Returns a string representation of the UnsignedLong value, in base radix.
toString(long) - Static method in class com.diffplug.common.primitives.UnsignedLongs
Returns a string representation of x, where x is treated as unsigned.
toString(long, int) - Static method in class com.diffplug.common.primitives.UnsignedLongs
Returns a string representation of x for the given radix, where x is treated as unsigned.
toStringFunction() - Static method in class com.diffplug.common.base.Functions
Returns a function that calls toString() on its argument.
toStringHelper(Object) - Static method in class com.diffplug.common.base.MoreObjects
Creates an instance of MoreObjects.ToStringHelper.
toStringHelper(Class<?>) - Static method in class com.diffplug.common.base.MoreObjects
Creates an instance of MoreObjects.ToStringHelper in the same manner as MoreObjects.toStringHelper(Object), but using the simple name of clazz instead of using an instance’s Object.getClass().
toStringHelper(String) - Static method in class com.diffplug.common.base.MoreObjects
Creates an instance of MoreObjects.ToStringHelper in the same manner as MoreObjects.toStringHelper(Object), but using className instead of using an instance’s Object.getClass().
toUpperCase(String) - Static method in class com.diffplug.common.base.Ascii
Returns a copy of the input string in which all lowercase ASCII characters have been converted to uppercase.
toUpperCase(CharSequence) - Static method in class com.diffplug.common.base.Ascii
Returns a copy of the input character sequence in which all lowercase ASCII characters have been converted to uppercase.
toUpperCase(char) - Static method in class com.diffplug.common.base.Ascii
If the argument is a lowercase ASCII character returns the uppercase equivalent.
toWriter() - Method in class com.diffplug.common.base.StringPrinter
Creates a Writer which passes its content to this StringPrinter.
trimAndCollapseFrom(CharSequence, char) - Method in class com.diffplug.common.base.CharMatcher
Collapses groups of matching characters exactly as CharMatcher.collapseFrom(java.lang.CharSequence, char) does, except that groups of matching characters at the start or end of the sequence are removed without replacement.
trimFrom(CharSequence) - Method in class com.diffplug.common.base.CharMatcher
Returns a substring of the input character sequence that omits all characters this matcher matches from the beginning and from the end of the string.
trimLeadingFrom(CharSequence) - Method in class com.diffplug.common.base.CharMatcher
Returns a substring of the input character sequence that omits all characters this matcher matches from the beginning of the string.
trimResults() - Method in class com.diffplug.common.base.Splitter
Returns a splitter that behaves equivalently to this splitter, but automatically removes leading and trailing whitespace from each returned substring; equivalent to trimResults(CharMatcher.WHITESPACE).
trimResults(CharMatcher) - Method in class com.diffplug.common.base.Splitter
Returns a splitter that behaves equivalently to this splitter, but removes all leading or trailing characters matching the given CharMatcher from each returned substring.
trimTrailingFrom(CharSequence) - Method in class com.diffplug.common.base.CharMatcher
Returns a substring of the input character sequence that omits all characters this matcher matches from the end of the string.
truncate(CharSequence, int, String) - Static method in class com.diffplug.common.base.Ascii
Truncates the given character sequence to the given maximum length.
tryParse(String) - Static method in class com.diffplug.common.primitives.Doubles
Parses the specified string as a double-precision floating point value.
tryParse(String) - Static method in class com.diffplug.common.primitives.Floats
Parses the specified string as a single-precision floating point value.
tryParse(String) - Static method in class com.diffplug.common.primitives.Ints
Parses the specified string as a signed decimal integer value.
tryParse(String, int) - Static method in class com.diffplug.common.primitives.Ints
Parses the specified string as a signed integer value using the specified radix.
tryParse(String) - Static method in class com.diffplug.common.primitives.Longs
Parses the specified string as a signed decimal long value.
tryParse(String, int) - Static method in class com.diffplug.common.primitives.Longs
Parses the specified string as a signed long value using the specified radix.

U

Unhandled - Exception in com.diffplug.common.base
Exceptions appropriate for unhandled-case errors, such as unexpected default or else clauses.
Unhandled(String) - Constructor for exception com.diffplug.common.base.Unhandled
 
UnsignedBytes - Class in com.diffplug.common.primitives
Static utility methods pertaining to byte primitives that interpret values as unsigned (that is, any negative value b is treated as the positive value 256 + b).
UnsignedInteger - Class in com.diffplug.common.primitives
A wrapper class for unsigned int values, supporting arithmetic operations.
UnsignedInts - Class in com.diffplug.common.primitives
Static utility methods pertaining to int primitives that interpret values as unsigned (that is, any negative value x is treated as the positive value 2^32 + x).
UnsignedLong - Class in com.diffplug.common.primitives
A wrapper class for unsigned long values, supporting arithmetic operations.
UnsignedLongs - Class in com.diffplug.common.primitives
Static utility methods pertaining to long primitives that interpret values as unsigned (that is, any negative value x is treated as the positive value 2^64 + x).
unwrap(Class<T>) - Static method in class com.diffplug.common.primitives.Primitives
Returns the corresponding primitive type of type if it is a wrapper type; otherwise returns type itself.
US - Static variable in class com.diffplug.common.base.Ascii
Unit Separator: These four information separators may be used within data in optional fashion, except that their hierarchical relationship shall be: FS is the most inclusive, then GS, then RS, and US is least inclusive.
useForNull(String) - Method in class com.diffplug.common.base.Joiner.MapJoiner
Returns a map joiner with the same behavior as this one, except automatically substituting nullText for any provided null keys or values.
useForNull(String) - Method in class com.diffplug.common.base.Joiner
Returns a joiner with the same behavior as this one, except automatically substituting nullText for any provided null elements.
Utf8 - Class in com.diffplug.common.base
Low-level, high-performance utility methods related to the UTF-8 character encoding.

V

value() - Method in enum com.diffplug.common.base.StandardSystemProperty
Returns the current value for this system property by delegating to System.getProperty(String).
valueOf(String) - Static method in enum com.diffplug.common.base.CaseFormat
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.diffplug.common.base.Comparison
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.diffplug.common.base.StandardSystemProperty
Returns the enum constant of this type with the specified name.
valueOf(long) - Static method in class com.diffplug.common.primitives.UnsignedInteger
Returns an UnsignedInteger that is equal to value, if possible.
valueOf(BigInteger) - Static method in class com.diffplug.common.primitives.UnsignedInteger
Returns a UnsignedInteger representing the same value as the specified BigInteger.
valueOf(String) - Static method in class com.diffplug.common.primitives.UnsignedInteger
Returns an UnsignedInteger holding the value of the specified String, parsed as an unsigned int value.
valueOf(String, int) - Static method in class com.diffplug.common.primitives.UnsignedInteger
Returns an UnsignedInteger holding the value of the specified String, parsed as an unsigned int value in the specified radix.
valueOf(long) - Static method in class com.diffplug.common.primitives.UnsignedLong
Returns an UnsignedLong representing the same value as the specified long.
valueOf(BigInteger) - Static method in class com.diffplug.common.primitives.UnsignedLong
Returns a UnsignedLong representing the same value as the specified BigInteger.
valueOf(String) - Static method in class com.diffplug.common.primitives.UnsignedLong
Returns an UnsignedLong holding the value of the specified String, parsed as an unsigned long value.
valueOf(String, int) - Static method in class com.diffplug.common.primitives.UnsignedLong
Returns an UnsignedLong holding the value of the specified String, parsed as an unsigned long value in the specified radix.
values() - Static method in enum com.diffplug.common.base.CaseFormat
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.diffplug.common.base.Comparison
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.diffplug.common.base.StandardSystemProperty
Returns an array containing the constants of this enum type, in the order they are declared.
Verify - Class in com.diffplug.common.base
Static convenience methods that serve the same purpose as Java language assertions, except that they are always enabled.
verify(boolean) - Static method in class com.diffplug.common.base.Verify
Ensures that expression is true, throwing a VerifyException with no message otherwise.
verify(boolean, String, Object...) - Static method in class com.diffplug.common.base.Verify
Ensures that expression is true, throwing a VerifyException with a custom message otherwise.
VerifyException - Exception in com.diffplug.common.base
Exception thrown upon the failure of a verification check, including those performed by the convenience methods of the Verify class.
VerifyException() - Constructor for exception com.diffplug.common.base.VerifyException
Constructs a VerifyException with no message.
VerifyException(String) - Constructor for exception com.diffplug.common.base.VerifyException
Constructs a VerifyException with the message message.
VerifyException(Throwable) - Constructor for exception com.diffplug.common.base.VerifyException
Constructs a VerifyException with the cause cause and a message that is null if cause is null, and cause.toString() otherwise.
VerifyException(String, Throwable) - Constructor for exception com.diffplug.common.base.VerifyException
Constructs a VerifyException with the message message and the cause cause.
verifyNotNull(T) - Static method in class com.diffplug.common.base.Verify
Ensures that reference is non-null, throwing a VerifyException with a default message otherwise.
verifyNotNull(T, String, Object...) - Static method in class com.diffplug.common.base.Verify
Ensures that reference is non-null, throwing a VerifyException with a custom message otherwise.
VisibleForTesting - Annotation Type in com.diffplug.common.annotations
Annotates a program element that exists, or is more widely visible than otherwise necessary, only for use in test code.
VT - Static variable in class com.diffplug.common.base.Ascii
Vertical Tabulation (‘\v’): A format effector which controls the movement of the printing position to the next in a series of predetermined printing lines.

W

WHITESPACE - Static variable in class com.diffplug.common.base.CharMatcher
Determines whether a character is whitespace according to the latest Unicode standard, as illustrated here.
whitespace() - Static method in class com.diffplug.common.base.CharMatcher
Determines whether a character is whitespace according to the latest Unicode standard, as illustrated here.
withKeyValueSeparator(String) - Method in class com.diffplug.common.base.Joiner
Returns a MapJoiner using the given key-value separator, and the same configuration as this Joiner otherwise.
withKeyValueSeparator(String) - Method in class com.diffplug.common.base.Splitter
Returns a MapSplitter which splits entries based on this splitter, and splits entries into keys and values using the specified separator.
withKeyValueSeparator(char) - Method in class com.diffplug.common.base.Splitter
Returns a MapSplitter which splits entries based on this splitter, and splits entries into keys and values using the specified separator.
withKeyValueSeparator(Splitter) - Method in class com.diffplug.common.base.Splitter
Returns a MapSplitter which splits entries based on this splitter, and splits entries into keys and values using the specified key-value splitter.
wrap(S) - Method in class com.diffplug.common.base.Equivalence
Returns a wrapper of reference that implements Object.equals() such that wrap(a).equals(wrap(b)) if and only if equivalent(a, b).
wrap(Throwing.Supplier<T>) - Method in class com.diffplug.common.base.Errors.Rethrowing
Returns a Supplier which wraps supplier and rethrows any exceptions as unchecked exceptions.
wrap(Throwing.Function<T, R>) - Method in class com.diffplug.common.base.Errors.Rethrowing
Returns a Function which wraps function and rethrows any exceptions as unchecked exceptions.
wrap(Throwing.Predicate<T>) - Method in class com.diffplug.common.base.Errors.Rethrowing
Returns a Predicate which wraps predicate and rethrows any exceptions as unchecked exceptions.
wrap(Throwing.Runnable) - Method in class com.diffplug.common.base.Errors
Returns a Runnable whose exceptions are handled by this Errors.
wrap(Throwing.Consumer<T>) - Method in class com.diffplug.common.base.Errors
Returns a Consumer whose exceptions are handled by this Errors.
wrap(Class<T>) - Static method in class com.diffplug.common.primitives.Primitives
Returns the corresponding wrapper type of type if it is a primitive type; otherwise returns type itself.
wrapFunction(Throwing.Function<T, R>) - Method in class com.diffplug.common.base.Errors.Rethrowing
Returns a Function which wraps function and rethrows any exceptions as unchecked exceptions.
wrapFunctionWithDefault(Throwing.Function<T, R>, R) - Method in class com.diffplug.common.base.Errors.Handling
Returns a Function which wraps function and returns onFailure if an exception is thrown.
WrappedAsRuntimeException(Throwable) - Constructor for exception com.diffplug.common.base.Errors.WrappedAsRuntimeException
 
wrapPredicate(Throwing.Predicate<T>) - Method in class com.diffplug.common.base.Errors.Rethrowing
Returns a Predicate which wraps predicate and rethrows any exceptions as unchecked exceptions.
wrapPredicateWithDefault(Throwing.Predicate<T>, boolean) - Method in class com.diffplug.common.base.Errors.Handling
Returns a Predicate which wraps predicate and returns onFailure if an exception is thrown.
wrapWithDefault(Throwing.Supplier<T>, T) - Method in class com.diffplug.common.base.Errors.Handling
Returns a Supplier which wraps supplier and returns onFailure if an exception is thrown.
wrapWithDefault(Throwing.Function<T, R>, R) - Method in class com.diffplug.common.base.Errors.Handling
Returns a Function which wraps function and returns onFailure if an exception is thrown.
wrapWithDefault(Throwing.Predicate<T>, boolean) - Method in class com.diffplug.common.base.Errors.Handling
Returns a Predicate which wraps predicate and returns onFailure if an exception is thrown.

X

XOFF - Static variable in class com.diffplug.common.base.Ascii
Transmission off.
XON - Static variable in class com.diffplug.common.base.Ascii
Transmission On: Although originally defined as DC1, this ASCII control character is now better known as the XON code used for software flow control in serial communications.

Z

ZERO - Static variable in class com.diffplug.common.primitives.UnsignedInteger
 
ZERO - Static variable in class com.diffplug.common.primitives.UnsignedLong
 
A B C D E F G H I J K L M N O P R S T U V W X Z 
Skip navigation links

com.diffplug.durian:durian-core:1.2.0 by DiffPlug