|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.cunit.util.ILambda.Binary.Bind1st<R,P,Q>
public static class ILambda.Binary.Bind1st<R,P,Q>
Unary decorator for a binary lambda that binds a constant to its first parameter.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface edu.rice.cs.cunit.util.ILambda |
---|
ILambda.Binary<R,P,Q>, ILambda.Nary<R,P>, ILambda.NaryAdaptor<R,P>, ILambda.Ternary<R,P,Q,S> |
Field Summary | |
---|---|
private P |
_constant
The constant first argument. |
private ILambda.Binary<R,P,Q> |
_decoree
The binary lambda that is decorated. |
Constructor Summary | |
---|---|
ILambda.Binary.Bind1st(ILambda.Binary<R,P,Q> decoree,
P constant)
Create a new unary decorator for a binary lambda, binding a constant to its first parameter. |
Method Summary | |
---|---|
R |
apply(Q param)
Apply the unary decorator, i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private P _constant
private ILambda.Binary<R,P,Q> _decoree
Constructor Detail |
---|
public ILambda.Binary.Bind1st(ILambda.Binary<R,P,Q> decoree, P constant)
decoree
- binary lambdaconstant
- constant for the binary lambda's first parameterMethod Detail |
---|
public R apply(Q param)
apply
in interface ILambda<R,Q>
param
- argument for the binary lambda's second parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |