Skip navigation links
A B C E F G I M N O P R S T 

A

add(String, Object) - Method in class org.starchartlabs.alloy.core.MoreObjects.ToStringHelper
Adds a name/value pair to the formatted output in name=value format.
addValue(Object) - Method in class org.starchartlabs.alloy.core.MoreObjects.ToStringHelper
Adds an unnamed value to the formatted output.

B

build() - Method in class org.starchartlabs.alloy.core.collections.MoreCollections.MapBuilder
Creates a new map from the specified values
build(Supplier<Map<K, V>>) - Method in class org.starchartlabs.alloy.core.collections.MoreCollections.MapBuilder
Creates a new map from the specified values

C

checkArgument(boolean) - Static method in class org.starchartlabs.alloy.core.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkArgument(T, Predicate<T>) - Static method in class org.starchartlabs.alloy.core.Preconditions
Evaluates a value against a provided Predicate expression
checkArgument(boolean, Object) - Static method in class org.starchartlabs.alloy.core.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkArgument(T, Predicate<T>, Object) - Static method in class org.starchartlabs.alloy.core.Preconditions
Evaluates a value against a provided Predicate expression
checkArgument(boolean, Supplier<String>) - Static method in class org.starchartlabs.alloy.core.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkArgument(T, Predicate<T>, Supplier<String>) - Static method in class org.starchartlabs.alloy.core.Preconditions
Evaluates a value against a provided Predicate expression
checkArgument(boolean, String, Object...) - Static method in class org.starchartlabs.alloy.core.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkArgument(T, Predicate<T>, String, Object...) - Static method in class org.starchartlabs.alloy.core.Preconditions
Evaluates a value against a provided Predicate expression
checkState(boolean) - Static method in class org.starchartlabs.alloy.core.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkState(T, Predicate<T>) - Static method in class org.starchartlabs.alloy.core.Preconditions
Evaluates a value against a provided Predicate expression
checkState(boolean, Object) - Static method in class org.starchartlabs.alloy.core.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkState(T, Predicate<T>, Object) - Static method in class org.starchartlabs.alloy.core.Preconditions
Evaluates a value against a provided Predicate expression
checkState(boolean, Supplier<String>) - Static method in class org.starchartlabs.alloy.core.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkState(T, Predicate<T>, Supplier<String>) - Static method in class org.starchartlabs.alloy.core.Preconditions
Evaluates a value against a provided Predicate expression
checkState(boolean, String, Object...) - Static method in class org.starchartlabs.alloy.core.Preconditions
Ensures the truth of an expression involving one or more parameters to the calling method.
checkState(T, Predicate<T>, String, Object...) - Static method in class org.starchartlabs.alloy.core.Preconditions
Evaluates a value against a provided Predicate expression
commonPrefix(CharSequence, CharSequence) - Static method in class org.starchartlabs.alloy.core.Strings
 
commonSuffix(CharSequence, CharSequence) - Static method in class org.starchartlabs.alloy.core.Strings
 
Comparators - Class in org.starchartlabs.alloy.core
Provides methods for streamlining and reducing boilerplate in relation to use of Comparator instances

E

emptiesFirst(Comparator<? super T>) - Static method in class org.starchartlabs.alloy.core.Comparators
 
emptiesLast(Comparator<? super T>) - Static method in class org.starchartlabs.alloy.core.Comparators
 
emptyToNull(String) - Static method in class org.starchartlabs.alloy.core.Strings
Returns the given string if it is nonempty; null otherwise
estimateSize() - Method in interface org.starchartlabs.alloy.core.collections.PageIterator
Returns an estimate of the number of elements that would be encountered by a complete traversal, or returns Long.MAX_VALUE if infinite, unknown, or too expensive to compute.

F

format(String, Object...) - Static method in class org.starchartlabs.alloy.core.Strings
Returns a formatted string using the specified template string and arguments.

G

getCausalChain(Throwable) - Static method in class org.starchartlabs.alloy.core.Throwables
Gets a Throwable cause chain as a list.
getRootCause(Throwable) - Static method in class org.starchartlabs.alloy.core.Throwables
Returns the innermost cause of throwable.
getStackTraceAsString(Throwable) - Static method in class org.starchartlabs.alloy.core.Throwables
Returns a string containing the result of toString(), followed by the full, recursive stack trace of throwable.

I

isInOrder(Iterable<? extends T>, Comparator<T>) - Static method in class org.starchartlabs.alloy.core.Comparators
 
isInStrictOrder(Iterable<? extends T>, Comparator<T>) - Static method in class org.starchartlabs.alloy.core.Comparators
 
isNullOrEmpty(String) - Static method in class org.starchartlabs.alloy.core.Strings
Returns true if the given string is null or is the empty string.

M

map(Supplier<S>, Function<S, T>) - Static method in class org.starchartlabs.alloy.core.Suppliers
Returns a new supplier which calls the provided supplier and then applies the provided function to map the result to a new representation.
mapBuilder() - Static method in class org.starchartlabs.alloy.core.collections.MoreCollections
Creates a builder for streamlined initialization of maps
memoize(Supplier<T>) - Static method in class org.starchartlabs.alloy.core.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 org.starchartlabs.alloy.core.Suppliers
Returns a supplier that caches the instance supplied by the delegate and removes the cached value after the specified time has passed.
MoreCollections - Class in org.starchartlabs.alloy.core.collections
Provides methods for streamlining and reducing boilerplate in relation to operations related to Java collections
MoreCollections() - Constructor for class org.starchartlabs.alloy.core.collections.MoreCollections
 
MoreCollections.MapBuilder<K,V> - Class in org.starchartlabs.alloy.core.collections
Builder for streamlined initialization of maps
MoreObjects - Class in org.starchartlabs.alloy.core
Provides methods for streamlining and reducing boilerplate in relation to basic Object operations
MoreObjects() - Constructor for class org.starchartlabs.alloy.core.MoreObjects
 
MoreObjects.ToStringHelper - Class in org.starchartlabs.alloy.core
MoreSpliterators - Class in org.starchartlabs.alloy.core.collections
Provides methods for streamlining and reducing boilerplate for operations related to Java Spliterators
MoreSpliterators() - Constructor for class org.starchartlabs.alloy.core.collections.MoreSpliterators
 
mutable() - Method in class org.starchartlabs.alloy.core.collections.MoreCollections.MapBuilder
Configures the resulting map to be mutable/modifiable

N

nullToEmpty(String) - Static method in class org.starchartlabs.alloy.core.Strings
Returns the given string if it is non-null; the empty string otherwise

O

ofPaged(PageIterator<T>) - Static method in class org.starchartlabs.alloy.core.collections.MoreSpliterators
Returns a spliterator which allows traversing over elements provided via a paging protocol
omitNullValues() - Method in class org.starchartlabs.alloy.core.MoreObjects.ToStringHelper
Configures the MoreObjects.ToStringHelper so MoreObjects.ToStringHelper.toString() will ignore properties with a null value.
org.starchartlabs.alloy.core - package org.starchartlabs.alloy.core
Core utilities for interacting with common Java constructs
org.starchartlabs.alloy.core.collections - package org.starchartlabs.alloy.core.collections
Utilities for interacting with common Java collection constructs

P

padEnd(String, int, char) - Static method in class org.starchartlabs.alloy.core.Strings
Constructs a string, of length at least minLength, consisting of string appended with as many copies of padChar as are necessary to reach that length.
padStart(String, int, char) - Static method in class org.starchartlabs.alloy.core.Strings
Constructs a string, of length at least minLength, consisting of string prepended with as many copies of padChar as are necessary to reach that length.
PageIterator<T> - Interface in org.starchartlabs.alloy.core.collections
Represents a specialized iterator for handling elements read in distinct chunks ("pages").
Preconditions - Class in org.starchartlabs.alloy.core
Utilities intended to streamline verification of expected input conditions by callers.
put(K, V) - Method in class org.starchartlabs.alloy.core.collections.MoreCollections.MapBuilder
 
putAll(Map<? extends K, ? extends V>) - Method in class org.starchartlabs.alloy.core.collections.MoreCollections.MapBuilder
 

R

repeat(String, int) - Static method in class org.starchartlabs.alloy.core.Strings
Constructs a string consisting of a specific number of concatenated copies of an input string.

S

shortCircuit(Spliterator<T>, BiFunction<Optional<A>, ? super T, A>, Predicate<A>) - Static method in class org.starchartlabs.alloy.core.collections.MoreSpliterators
Returns a spliterator which allows stopping traversal when the previously traversed elements meet criteria specified by a predicate.
Strings - Class in org.starchartlabs.alloy.core
Utilities intended to enhance and streamline use of String or CharSequence instances.
Suppliers - Class in org.starchartlabs.alloy.core
Utilities intended to enhance and streamline use of Supplier instances
synchronizedSupplier(Supplier<T>) - Static method in class org.starchartlabs.alloy.core.Suppliers
 

T

Throwables - Class in org.starchartlabs.alloy.core
Utilities intended to enhance and streamline use of Throwable
throwIfInstanceOf(Throwable, Class<X>) - Static method in class org.starchartlabs.alloy.core.Throwables
Throws throwable if it is an instance of declaredType
throwIfUnchecked(Throwable) - Static method in class org.starchartlabs.alloy.core.Throwables
Throws throwable if it is a RuntimeException or Error
toString() - Method in class org.starchartlabs.alloy.core.MoreObjects.ToStringHelper
 
toStringHelper(Object) - Static method in class org.starchartlabs.alloy.core.MoreObjects
Creates an instance of MoreObjects.ToStringHelper.
toStringHelper(Class<?>) - Static method in class org.starchartlabs.alloy.core.MoreObjects
Creates an instance of MoreObjects.ToStringHelper.
toStringHelper(String) - Static method in class org.starchartlabs.alloy.core.MoreObjects
Creates an instance of MoreObjects.ToStringHelper.
trySplit() - Method in interface org.starchartlabs.alloy.core.collections.PageIterator
Utilized by spliterator implementations to partition via Spliterator.trySplit()
A B C E F G I M N O P R S T 
Skip navigation links