A
- the argument type.T
- the returned value type.public final class NullaryFunctionFunction<A,T> extends Object implements Function<A,T>
NullaryFunction
to the
Function
interface
by ignoring the unary argument.Constructor and Description |
---|
NullaryFunctionFunction(NullaryFunction<? extends T> function)
Create a new NullaryFunctionFunction.
|
Modifier and Type | Method and Description |
---|---|
static <A,T> NullaryFunctionFunction<A,T> |
adapt(NullaryFunction<? extends T> function)
Adapt a NullaryFunction to the Function interface.
|
boolean |
equals(Object obj) |
T |
evaluate(A obj)
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public NullaryFunctionFunction(NullaryFunction<? extends T> function)
function
- to adaptpublic static <A,T> NullaryFunctionFunction<A,T> adapt(NullaryFunction<? extends T> function)
A
- arg typeT
- result typefunction
- to adaptCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.