public abstract class FluentFunction<A,B> extends Object implements com.google.common.base.Function<A,B>
Function
which allows chaining.Constructor and Description |
---|
FluentFunction() |
Modifier and Type | Method and Description |
---|---|
<C> FluentFunction<A,C> |
andThen(com.google.common.base.Function<B,C> f)
Returns a new
FluentFunction which is the composition of this
function and the argument given to this method. |
static <A,B> FluentFunction<A,B> |
from(com.google.common.base.Function<A,B> f)
Wraps the given function with a new fluent function or returns the
function as is if it is already a fluent function.
|
public final <C> FluentFunction<A,C> andThen(com.google.common.base.Function<B,C> f)
FluentFunction
which is the composition of this
function and the argument given to this method.f
- the function which should be called on the result of this
functionpublic static final <A,B> FluentFunction<A,B> from(com.google.common.base.Function<A,B> f)