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 TypeClassDescriptionclassMethods 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 transformfunctionto 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 aFileobject.static Function<JsonValue,JsonValue, JsonValueException> JsonValueFunctions.identity()Returns an identity function that will copy the inputJsonValue.Returns the JSON value as aListcontaining 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 aSetcontaining objects whose type (and value) is specified by the parametertype.Returns the JSON value as aSetcontaining 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 transformfunctionto each element.Returns the JSON value as aListcontaining objects whose type (and value) is specified by a transformation function.Returns the JSON value as aSetcontaining 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 TypeInterfaceDescriptioninterfaceAsyncFunction<VIN,VOUT, E extends Exception> An asynchronousFunctionwhich returns a result at some point in the future.Classes in org.forgerock.util that implement FunctionModifier and TypeClassDescriptionclassCloseSilentlyFunction<VIN extends Closeable,VOUT, E extends Exception> Functionthat 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 newCloseSilentlyFunctioninstance. -
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 thisPromisehas completed with a result, and returns a newPromiserepresenting the outcome of the function.Submits the provided functions for execution once thisPromisehas completed (with a result or an exception), and returns a newPromiserepresenting 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 thisPromisehas completed (with a result or an exception or aRuntimeException), and returns a newPromiserepresenting 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 thisPromisehas not completed with a result (has completed with an exception), and returns a newPromiserepresenting the outcome of the function.Promise.thenCatchRuntimeException(Function<? super RuntimeException, V, E> onRuntimeException) Submits the provided function for execution once thisPromisehas not completed with a result nor with an exception but with aRuntimeException, and returns a newPromiserepresenting the outcome of the function.PromiseImpl.thenCatchRuntimeException(Function<? super RuntimeException, V, E> onRuntimeException)