Package com.imc.util
Class FluentFunction<A,B>
java.lang.Object
com.imc.util.FluentFunction<A,B>
An extends version of
Function which allows chaining.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <C> FluentFunction<A,C> andThen(<any> f) Returns a newFluentFunctionwhich is the composition of this function and the argument given to this method.static final <A,B> FluentFunction<A, B> from(<any> f) Wraps the given function with a new fluent function or returns the function as is if it is already a fluent function.
-
Constructor Details
-
FluentFunction
public FluentFunction()
-
-
Method Details
-
from
Wraps the given function with a new fluent function or returns the function as is if it is already a fluent function. -
andThen
Returns a newFluentFunctionwhich is the composition of this function and the argument given to this method.- Parameters:
f- the function which should be called on the result of this function
-