edu.rice.cs.cunit.util
Class ILambda.Ternary.Bind3rd<R,P,Q,S>
java.lang.Object
edu.rice.cs.cunit.util.ILambda.Ternary.Bind3rd<R,P,Q,S>
- All Implemented Interfaces:
- ILambda.Binary<R,P,Q>
- Enclosing interface:
- ILambda.Ternary<R,P,Q,S>
public static class ILambda.Ternary.Bind3rd<R,P,Q,S>
- extends java.lang.Object
- implements ILambda.Binary<R,P,Q>
Binary decorator for a ternary lambda that binds a constant to its third parameter.
Method Summary |
R |
apply(P param1,
Q param2)
Apply the binary decorator, i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_constant
private S _constant
- The constant third argument.
_decoree
private ILambda.Ternary<R,P,Q,S> _decoree
- The ternary lambda that is decorated.
ILambda.Ternary.Bind3rd
public ILambda.Ternary.Bind3rd(ILambda.Ternary<R,P,Q,S> decoree,
S constant)
- Create a new binary decorator for a ternary lambda, binding a constant to its third parameter.
- Parameters:
decoree
- ternary lambdaconstant
- constant for the ternary lambda's third parameter
apply
public R apply(P param1,
Q param2)
- Apply the binary decorator, i.e. apply the constant and the parameters to the ternary lambda.
- Specified by:
apply
in interface ILambda.Binary<R,P,Q>
- Parameters:
param1
- argument for the ternary lambda's first parameterparam2
- argument for the ternary lambda's second parameter
- Returns:
- return value of the binary lambda