Package org.forgerock.util
package org.forgerock.util
Provides common interfaces and classes.
-
ClassDescriptionAn
Runnable
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.This class can be used for filtering string elements by using blacklists and/or whitelists.Common utility methods for Closeables.AsyncFunction
that silently closes an input-parameter after a delegate-function'sAsyncFunction.apply(Object)
is completed.Function
that silently closes an input-parameter after a delegate-function'sFunction.apply(Object)
is invoked.AConsumer
functional interface which can throw a checked Exception.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.Factory<T>A factory interface.A synchronous function which returns a result immediately.Indexed<T>Interface of an object that can be indexed with a unique key.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.Wraps another map.Provides methods for dynamically loading classes.MapDecorator<K,V> Wraps another map.NonExpiringCache<K,V> Allows the Caching of an object.Common utility methods for Objects.Option<T>A configuration option whose value can be stored in a set ofOptions
.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 is a thread-safe write-through cache.APredicate
functional interface which can thrown a checked Exception.Exposes a range of integer values as a set.A input parameter-validating utility class using fluent invocation:Utility class for signing and verifying signatures.Utility methods for operating on IO streams.Common utility methods for Strings.ASupplier
functional interface which can throw a checked Exception.Common utility methods for Threads.Deprecated.
Strings
,Closeables
,Objects
orThreads
instead.