Package org.forgerock.util
Provides common interfaces and classes.
-
Interface Summary Interface Description Action<E extends Exception> AnRunnable
functional interface which can throw a checked Exception.AsyncFunction<VIN,VOUT,E extends Exception> An asynchronousFunction
which returns a result at some point in the future.BiFunction<T,U,R,E extends Exception> ABiFunction
functional interface which can throw a checked Exception.Consumer<T,E extends Exception> AConsumer
functional interface which can throw a checked Exception.Factory<T> A factory interface.Function<VIN,VOUT,E extends Exception> A synchronous function which returns a result immediately.Indexed<T> Interface of an object that can be indexed with a unique key.Predicate<T,E extends Exception> APredicate
functional interface which can thrown a checked Exception.Supplier<T,E extends Exception> ASupplier
functional interface which can throw a checked Exception. -
Class Summary Class Description BlackAndWhitelistFilter This class can be used for filtering string elements by using blacklists and/or whitelists.Closeables Common utility methods for Closeables.CloseSilentlyAsyncFunction<VIN extends Closeable,VOUT,E extends Exception> AsyncFunction
that silently closes an input-parameter after a delegate-function'sAsyncFunction.apply(Object)
is completed.CloseSilentlyFunction<VIN extends Closeable,VOUT,E extends Exception> Function
that silently closes an input-parameter after a delegate-function'sFunction.apply(Object)
is invoked.DirectoryWatcher High-level interface to theWatchService
API for detecting filesystem change events.EnumValueOfHelper<E extends Enum<E>> Provides aEnumValueOfHelper.valueOf(String)
method as a replacement for the implicitly declared enum functionvalueOf(String)
, which has the advantage of not throwing exceptions when thename
argument isnull
or cannot be found in the enum's values.LambdaExceptionUtils Utility methods for interacting with lambdas that throw exceptions.LazyList<E> A list with lazy initialization.LazyMap<K,V> A map with lazy initialization.LazySupplier<T,E extends Exception> ASupplier
that lazily computes a value the first time it is accessed and then caches the result to return on subsequent requests.ListDecorator<E> Wraps another map.Loader Provides methods for dynamically loading classes.MapDecorator<K,V> Wraps another map.NonExpiringCache<K,V> Allows the Caching of an object.Objects Common utility methods for Objects.Option<T> A configuration option whose value can be stored in a set ofOptions
.Options A set of options which can be used for customizing the behavior of HTTP clients and servers.Pair<F,S> Ordered pair of arbitrary objects.PerItemEvictionStrategyCache<K,V> PerItemEvictionStrategyCache is a thread-safe write-through cache.RangeSet Exposes a range of integer values as a set.Reject A input parameter-validating utility class using fluent invocation:SignatureUtil Utility class for signing and verifying signatures.Streams Utility methods for operating on IO streams.Strings Common utility methods for Strings.Threads Common utility methods for Threads.Utils Deprecated.