A - the argument type.T - the returned value type.public final class RightBoundFunction<A,T> extends Object implements Function<A,T>
BinaryFunction
to the
Function interface
using a constant right-side argument.| Constructor and Description |
|---|
RightBoundFunction(BinaryFunction<? super A,? super R,? extends T> function,
R arg) |
| Modifier and Type | Method and Description |
|---|---|
static <L,R,T> RightBoundFunction<L,T> |
bind(BinaryFunction<? super L,? super R,? extends T> function,
R arg)
Adapt a BinaryFunction to the Function interface.
|
boolean |
equals(Object obj) |
T |
evaluate(A obj)
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public RightBoundFunction(BinaryFunction<? super A,? super R,? extends T> function, R arg)
R - bound arg typefunction - the function to adaptarg - the constant argument to usepublic static <L,R,T> RightBoundFunction<L,T> bind(BinaryFunction<? super L,? super R,? extends T> function, R arg)
L - the left argument type.R - the right argument type.T - the returned value type.function - BinaryFunction to adaptarg - Object that will always be used for the right side of the BinaryFunction delegate.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.