public final class Functional extends Object
Modifier and Type | Method and Description |
---|---|
static <F,T> Function<F,T> |
cast(Class<T> target)
Identity function casting its arguments to a particular type.
|
static <T> Function<T,Object> |
invokeMethod(Method method,
Object target) |
static <T> Function<org.apache.commons.lang3.tuple.Pair<T,?>,T> |
pairLeft() |
static <T> Function<org.apache.commons.lang3.tuple.Pair<?,T>,T> |
pairRight() |
static Funnel<Object> |
serializeFunnel()
A
Funnel that serializes an object to the sink. |
public static <T> Function<org.apache.commons.lang3.tuple.Pair<T,?>,T> pairLeft()
public static <T> Function<org.apache.commons.lang3.tuple.Pair<?,T>,T> pairRight()
public static Funnel<Object> serializeFunnel()
Funnel
that serializes an object to the sink.public static <F,T> Function<F,T> cast(Class<T> target)
F
- The function's input type.T
- The type to which to cast arguments.target
- The target type for arguments.