Uses of Interface
org.forgerock.util.Function
Packages that use Function
Package
Description
Provides an API for the traversal and manipulation of JSON object model structures in Java.
Provides common interfaces and classes.
An implementation of the
Promise
API in Java.-
Uses of Function in org.forgerock.json
Classes in org.forgerock.json that implement FunctionModifier and TypeClassDescriptionclass
Methods in org.forgerock.json that return FunctionModifier and TypeMethodDescriptionstatic Function<JsonValue,
Charset, JsonValueException> JsonValueFunctions.charset()
Returns the JSON string value as a character set used for byte encoding/decoding.static Function<JsonValue,
JsonValue, JsonValueException> JsonValueFunctions.deepTransformBy
(Function<JsonValue, ?, JsonValueException> function) Returns the JSON value as the result of a deep JsonValue object-traversal, applying the provided transformfunction
to each element.static Function<JsonValue,
Duration, JsonValueException> JsonValueFunctions.duration()
Returns the JSON string value as aDuration
.static <T extends Enum<T>>
Function<JsonValue,T, JsonValueException> JsonValueFunctions.enumConstant
(Class<T> type) Returns the JSON string value as an enum constant of the specified enum type.static Function<JsonValue,
File, JsonValueException> JsonValueFunctions.file()
Returns the JSON string value as aFile
object.static Function<JsonValue,
JsonValue, JsonValueException> JsonValueFunctions.identity()
Returns an identity function that will copy the inputJsonValue
.Returns the JSON value as aList
containing objects whose type (and value) is specified by a transformation function.static Function<JsonValue,
Pattern, JsonValueException> JsonValueFunctions.pattern()
Returns the JSON string value as a regular expression pattern.JsonValueFunctions.pointer()
Returns the JSON string value as a JSON pointer.static <V> Function<JsonValue,
Set<V>, JsonValueException> Returns the JSON value as aSet
containing objects whose type (and value) is specified by the parametertype
.Returns the JSON value as aSet
containing objects whose type (and value) is specified by a transformation function.static Function<JsonValue,
URI, JsonValueException> JsonValueFunctions.uri()
Returns the JSON string value as a uniform resource identifier.static Function<JsonValue,
URL, JsonValueException> JsonValueFunctions.url()
Returns the JSON string value as a uniform resource locator.static Function<JsonValue,
UUID, JsonValueException> JsonValueFunctions.uuid()
Returns the JSON string value as a universally unique identifier (UUID).Methods in org.forgerock.json with parameters of type FunctionModifier and TypeMethodDescription<V,
E extends Exception>
VReturns the JSON value as an object whose type (and value) is specified by a transformation function.static Function<JsonValue,
JsonValue, JsonValueException> JsonValueFunctions.deepTransformBy
(Function<JsonValue, ?, JsonValueException> function) Returns the JSON value as the result of a deep JsonValue object-traversal, applying the provided transformfunction
to each element.Returns the JSON value as aList
containing objects whose type (and value) is specified by a transformation function.Returns the JSON value as aSet
containing objects whose type (and value) is specified by a transformation function.Constructors in org.forgerock.json with parameters of type FunctionModifierConstructorDescriptionJsonValueTraverseFunction
(Function<JsonValue, ?, JsonValueException> transform) Construct the traversal function with a transformation function to apply to each array element nested object attribute value element, or primitive element. -
Uses of Function in org.forgerock.util
Subinterfaces of Function in org.forgerock.utilModifier and TypeInterfaceDescriptioninterface
AsyncFunction<VIN,
VOUT, E extends Exception> An asynchronousFunction
which returns a result at some point in the future.Classes in org.forgerock.util that implement FunctionModifier and TypeClassDescriptionclass
CloseSilentlyFunction<VIN extends Closeable,
VOUT, E extends Exception> Function
that silently closes an input-parameter after a delegate-function'sapply(Object)
is invoked.Methods in org.forgerock.util that return FunctionModifier and TypeMethodDescriptionCloseSilentlyFunction.closeSilently
(Function<IN, OUT, EX> delegate) Wraps a delegate function in aCloseSilentlyFunction
.Methods in org.forgerock.util with parameters of type FunctionModifier and TypeMethodDescriptionCloseSilentlyFunction.closeSilently
(Function<IN, OUT, EX> delegate) Wraps a delegate function in aCloseSilentlyFunction
.Constructors in org.forgerock.util with parameters of type FunctionModifierConstructorDescriptionCloseSilentlyFunction
(Function<VIN, VOUT, E> delegate) Creates a newCloseSilentlyFunction
instance. -
Uses of Function in org.forgerock.util.promise
Methods in org.forgerock.util.promise with parameters of type FunctionModifier and TypeMethodDescriptionSubmits the provided function for execution once thisPromise
has completed with a result, and returns a newPromise
representing the outcome of the function.Submits the provided functions for execution once thisPromise
has completed (with a result or an exception), and returns a newPromise
representing the outcome of the invoked function.Promise.then
(Function<? super V, VOUT, EOUT> onResult, Function<? super E, VOUT, EOUT> onException, Function<? super RuntimeException, VOUT, EOUT> onRuntimeException) Submits the provided functions for execution once thisPromise
has completed (with a result or an exception or aRuntimeException
), and returns a newPromise
representing the outcome of the invoked function.PromiseImpl.then
(Function<? super V, VOUT, EOUT> onResult, Function<? super E, VOUT, EOUT> onException, Function<? super RuntimeException, VOUT, EOUT> onRuntimeException) Submits the provided function for execution once thisPromise
has not completed with a result (has completed with an exception), and returns a newPromise
representing the outcome of the function.Promise.thenCatchRuntimeException
(Function<? super RuntimeException, V, E> onRuntimeException) Submits the provided function for execution once thisPromise
has not completed with a result nor with an exception but with aRuntimeException
, and returns a newPromise
representing the outcome of the function.PromiseImpl.thenCatchRuntimeException
(Function<? super RuntimeException, V, E> onRuntimeException)