A - the argument type.T - the returned value type.public final class FunctionUnaryFunction<A,T> extends Object implements UnaryFunction<A,T>, Serializable
Function
to the
UnaryFunction interface
by ignoring the unary argument.
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if the
underlying functor is. Attempts to serialize
an instance whose delegate is not
Serializable will result in an exception.| Constructor and Description |
|---|
FunctionUnaryFunction(Function<? extends T> function)
Create a new FunctionUnaryFunction.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,T> FunctionUnaryFunction<A,T> |
adapt(Function<? extends T> function)
Adapt a Function to the UnaryFunction interface.
|
boolean |
equals(FunctionUnaryFunction<?,?> that)
Learn whether another FunctionUnaryFunction is equal to this.
|
boolean |
equals(Object that) |
T |
evaluate(A obj)
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public FunctionUnaryFunction(Function<? extends T> function)
function - to adaptpublic T evaluate(A obj)
evaluate in interface UnaryFunction<A,T>obj - the A object to evaluatepublic boolean equals(FunctionUnaryFunction<?,?> that)
that - FunctionUnaryFunction to testpublic static <A,T> FunctionUnaryFunction<A,T> adapt(Function<? extends T> function)
A - arg typeT - result typefunction - to adaptCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.