L - the left argument type.R - the right argument type.T - the returned value type.public final class BinaryProcedureBinaryFunction<L,R,T> extends Object implements BinaryFunction<L,R,T>
| Constructor and Description |
|---|
BinaryProcedureBinaryFunction(BinaryProcedure<? super L,? super R> procedure)
Create a new BinaryProcedureBinaryFunction.
|
public BinaryProcedureBinaryFunction(BinaryProcedure<? super L,? super R> procedure)
procedure - to adapt as a BinaryFunctionpublic T evaluate(L left, R right)
evaluate in interface BinaryFunction<L,R,T>left - the L element of the ordered pair of argumentsright - the R element of the ordered pair of argumentspublic static <L,R,T> BinaryProcedureBinaryFunction<L,R,T> adapt(BinaryProcedure<? super L,? super R> procedure)
null,
BinaryProcedure to the
BinaryFunction interface.
When the given BinaryProcedure is null,
returns null.L - the left argument type.R - the right argument type.T - the returned value type.procedure - the possibly-null
BinaryFunction to adaptBinaryProcedureBinaryFunction wrapping the given
BinaryFunction, or null
if the given BinaryFunction is nullCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.