|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.co.jezuk.mango.Bind
Function and Predicate binding adaptors.
| Method Summary | |
static UnaryFunction |
First(BinaryFunction f,
java.lang.Object c)
Adapts a BinaryFunction into a UnaryFunction. |
static Predicate |
First(BinaryPredicate p,
java.lang.Object c)
Special case which adapts a BinaryPredicate to a Predicate. |
static UnaryFunction |
Second(BinaryFunction f,
java.lang.Object c)
Adapts a BinaryFunction into a UnaryFunction. |
static Predicate |
Second(BinaryPredicate p,
java.lang.Object c)
Special case which adapts a BinaryPredicate to a Predicate. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static UnaryFunction First(BinaryFunction f,
java.lang.Object c)
BinaryFunction into a UnaryFunction.
If f is an object implementing BinaryFunction, then
Bind.First(f, C).fn(arg) returns f(C, arg).
Intuitively, you can think of this as "binding" the first argument of a
BinaryFunction to a constant, thus giving a UnaryFunction.
public static Predicate First(BinaryPredicate p,
java.lang.Object c)
BinaryPredicate to a Predicate.
If p is a BinaryPredicate, then Bind.First(p, C).test(arg)
returns p.test(C, arg).
public static UnaryFunction Second(BinaryFunction f,
java.lang.Object c)
BinaryFunction into a UnaryFunction.
If f is an object implementing BinaryFunction, then
Bind.Second(f, C).fn(arg) returns f(arg, C).
Intuitively, you can think of this as "binding" the second argument of a
BinaryFunction to a constant, thus giving a UnaryFunction.
public static Predicate Second(BinaryPredicate p,
java.lang.Object c)
BinaryPredicate to a Predicate.
If p is a BinaryPredicate, then Bind.Second(p, C).test(arg)
returns p.test(arg, C).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||