- accept(T) - Method in interface com.diffplug.common.base.Box
-
- accept(double) - Method in interface com.diffplug.common.base.Box.Dbl
-
- accept(int) - Method in interface com.diffplug.common.base.Box.Int
-
- accept(long) - Method in interface com.diffplug.common.base.Box.Lng
-
- accept(T) - Method in interface com.diffplug.common.base.Box.Nullable
-
- 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
-
- 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
-
- asList(byte...) - Static method in class com.diffplug.common.primitives.Bytes
-
- asList(char...) - Static method in class com.diffplug.common.primitives.Chars
-
- asList(double...) - Static method in class com.diffplug.common.primitives.Doubles
-
- asList(float...) - Static method in class com.diffplug.common.primitives.Floats
-
- asList(int...) - Static method in class com.diffplug.common.primitives.Ints
-
- asList(long...) - Static method in class com.diffplug.common.primitives.Longs
-
- asList(short...) - Static method in class com.diffplug.common.primitives.Shorts
-
- 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>>.
- 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
-
- 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
-
- 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
-
- 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.
- 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
-
- 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.
- 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
-
- equals(Object) - Method in class com.diffplug.common.base.Equivalence.Wrapper
-
- 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
-
- 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
-
- Errors.Plugins.Log - Interface in com.diffplug.common.base
-
- 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.
- 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
-
- 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
-
- 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
-
- 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.
- 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
-
- 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
-
- 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
-
- 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.
- 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
-
- 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.
- 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
-
- 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
-
- max(float...) - Static method in class com.diffplug.common.primitives.Floats
-
- 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
-
- mean(int...) - Static method in class com.diffplug.common.math.DoubleMath
-
- mean(long...) - Static method in class com.diffplug.common.math.DoubleMath
-
- mean(Iterable<? extends Number>) - Static method in class com.diffplug.common.math.DoubleMath
-
- mean(Iterator<? extends Number>) - Static method in class com.diffplug.common.math.DoubleMath
-
- 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
-
- min(float...) - Static method in class com.diffplug.common.primitives.Floats
-
- 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
-
- 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
-
- 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.
- 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
-
- 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
-
- 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
-
- set(int) - Method in interface com.diffplug.common.base.Box.Int
-
- set(Integer) - Method in interface com.diffplug.common.base.Box.Int
-
- set(long) - Method in interface com.diffplug.common.base.Box.Lng
-
- set(Long) - Method in interface com.diffplug.common.base.Box.Lng
-
- 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
-
- 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
-
- stringConverter() - Static method in class com.diffplug.common.primitives.Doubles
-
- stringConverter() - Static method in class com.diffplug.common.primitives.Floats
-
- stringConverter() - Static method in class com.diffplug.common.primitives.Ints
-
- stringConverter() - Static method in class com.diffplug.common.primitives.Longs
-
- stringConverter() - Static method in class com.diffplug.common.primitives.Shorts
-
- stringException(String) - Static method in exception com.diffplug.common.base.Unhandled
-
- StringPrinter - Class in com.diffplug.common.base
-
- 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
-
- systemOut() - Static method in class com.diffplug.common.base.StringPrinter
-
- systemTicker() - Static method in class com.diffplug.common.base.Ticker
-
- test(Character) - Method in class com.diffplug.common.base.CharMatcher
-
- 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
-
- toLowerCase(CharSequence) - Static method in class com.diffplug.common.base.Ascii
-
- toLowerCase(char) - Static method in class com.diffplug.common.base.Ascii
-
- toOutputStream() - Method in class com.diffplug.common.base.StringPrinter
-
- 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
-
- 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
-
- 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
-
- toStringHelper(Class<?>) - Static method in class com.diffplug.common.base.MoreObjects
-
- toStringHelper(String) - Static method in class com.diffplug.common.base.MoreObjects
-
- toUpperCase(String) - Static method in class com.diffplug.common.base.Ascii
-
- toUpperCase(CharSequence) - Static method in class com.diffplug.common.base.Ascii
-
- toUpperCase(char) - Static method in class com.diffplug.common.base.Ascii
-
- 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
-
- 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.
- value() - Method in enum com.diffplug.common.base.StandardSystemProperty
-
- 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.