T - the returned value type.public final class BoundNullaryFunction<T> extends Object implements NullaryFunction<T>
Function
 to the
 NullaryFunction interface
 using a constant unary argument.| Constructor and Description | 
|---|
BoundNullaryFunction(Function<? super A,? extends T> function,
                                        A arg)
Create a new BoundNullaryFunction instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static <A,T> BoundNullaryFunction<T> | 
bind(Function<? super A,? extends T> function,
        A arg)
Adapt the given, possibly- 
null,
 Function to the
 NullaryFunction interface by binding
 the specified Object as a constant
 argument. | 
boolean | 
equals(Object obj) | 
T | 
evaluate()
Evaluate this function. 
 | 
int | 
hashCode() | 
String | 
toString() | 
public BoundNullaryFunction(Function<? super A,? extends T> function, A arg)
A - the argument value typefunction - the function to adaptarg - the constant argument to usepublic T evaluate()
evaluate in interface NullaryFunction<T>public static <A,T> BoundNullaryFunction<T> bind(Function<? super A,? extends T> function, A arg)
null,
 Function to the
 NullaryFunction interface by binding
 the specified Object as a constant
 argument.
 When the given Function is null,
 returns null.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.