|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.cunit.util.ILambda.Nary.Bind<R,P>
public static class ILambda.Nary.Bind<R,P>
(N-1)-ary decorator for an N-ary lambda that binds a constant to one of its parameters.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.rice.cs.cunit.util.ILambda.Nary |
|---|
ILambda.Nary.BinaryAdaptor<R,P>, ILambda.Nary.Bind<R,P>, ILambda.Nary.BindK<R,P>, ILambda.Nary.Max<T extends java.lang.Comparable<T>>, ILambda.Nary.Min<T extends java.lang.Comparable<T>>, ILambda.Nary.TernaryAdaptor<R,P>, ILambda.Nary.UnaryAdaptor<R,P> |
| Field Summary | |
|---|---|
private P |
_constant
The constant argument. |
private ILambda.Nary<R,P> |
_decoree
The N-ary lambda. |
private int |
_index
The index of the constant parameter. |
| Constructor Summary | |
|---|---|
ILambda.Nary.Bind(ILambda.Nary<R,P> decoree,
int index,
P constant)
Creates a new (N-1)-ary decorator for an N-ary lambda, binding a constant to one of its parameters. |
|
| Method Summary | |
|---|---|
R |
apply(P... param)
Apply the (N-1)-ary decorator, i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int _index
private P _constant
private ILambda.Nary<R,P> _decoree
| Constructor Detail |
|---|
public ILambda.Nary.Bind(ILambda.Nary<R,P> decoree,
int index,
P constant)
decoree - N-ary lambdaindex - index of the constant parameter, 0 <= index < Nconstant - constant for the specified parameter| Method Detail |
|---|
public R apply(P... param)
apply in interface ILambda.Nary<R,P>param - (N-1) arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||