A - the argument type.T - the returned value type.public final class BinaryFunctionUnaryFunction<A,T> extends Object implements UnaryFunction<A,T>
| Constructor and Description |
|---|
BinaryFunctionUnaryFunction(BinaryFunction<? super A,? super A,? extends T> function)
Create a new BinaryFunctionUnaryFunction.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,T> UnaryFunction<A,T> |
adapt(BinaryFunction<? super A,? super A,? extends T> function)
Adapt a BinaryFunction as a UnaryFunction.
|
boolean |
equals(BinaryFunctionUnaryFunction<?,?> that)
Learn whether another BinaryFunctionUnaryFunction is equal to
this. |
boolean |
equals(Object obj) |
T |
evaluate(A obj)
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public BinaryFunctionUnaryFunction(BinaryFunction<? super A,? super A,? extends T> function)
function - to adaptpublic T evaluate(A obj)
evaluate in interface UnaryFunction<A,T>obj - the A object to evaluatepublic boolean equals(BinaryFunctionUnaryFunction<?,?> that)
this.that - BinaryFunctionUnaryFunction to checkpublic static <A,T> UnaryFunction<A,T> adapt(BinaryFunction<? super A,? super A,? extends T> function)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.