L
- the left argument type.R
- the right argument type.public final class BinaryFunctionBinaryProcedure<L,R> extends Object implements BinaryProcedure<L,R>
BinaryFunction
to the BinaryProcedure
interface by ignoring the value returned
by the function.Constructor and Description |
---|
BinaryFunctionBinaryProcedure(BinaryFunction<? super L,? super R,?> function)
Create an
BinaryProcedure wrapping
the given BinaryFunction . |
Modifier and Type | Method and Description |
---|---|
static <L,R> BinaryFunctionBinaryProcedure<L,R> |
adapt(BinaryFunction<? super L,? super R,?> function)
|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
run(L left,
R right)
Evaluate my function, but
ignore its returned value. |
String |
toString() |
public BinaryFunctionBinaryProcedure(BinaryFunction<? super L,? super R,?> function)
BinaryProcedure
wrapping
the given BinaryFunction
.function
- the BinaryFunction
to wrappublic void run(L left, R right)
Evaluate
my function, but
ignore its returned value.
Execute this procedure.run
in interface BinaryProcedure<L,R>
left
- the L element of the ordered pair of argumentsright
- the R element of the ordered pair of argumentspublic static <L,R> BinaryFunctionBinaryProcedure<L,R> adapt(BinaryFunction<? super L,? super R,?> function)
null
,
BinaryFunction
to the
BinaryProcedure
interface.
When the given BinaryFunction
is null
,
returns null
.L
- left typeR
- right typefunction
- the possibly-null
BinaryFunction
to adaptBinaryFunctionBinaryProcedure
wrapping the given
BinaryFunction
, or null
if the given BinaryFunction
is null
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.