|
||||||||||
| 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.BindK<R,P>
public static class ILambda.Nary.BindK<R,P>
(N-K)-ary decorator for an N-ary lambda that binds constants to K 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[] |
_constants
Array with constant arguments. |
private ILambda.Nary<R,P> |
_decoree
The N-ary lambda. |
private int[] |
_indices
Array with indices of the constant parameters. |
| Constructor Summary | |
|---|---|
ILambda.Nary.BindK(ILambda.Nary<R,P> decoree,
int[] indices,
P... constants)
Creates a new (N-K)-ary decorator for an N-ary lambda, binding constants to K of its parameters. |
|
| Method Summary | |
|---|---|
R |
apply(P... param)
Apply the (N-K)-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[] _indices
private P[] _constants
private ILambda.Nary<R,P> _decoree
| Constructor Detail |
|---|
public ILambda.Nary.BindK(ILambda.Nary<R,P> decoree,
int[] indices,
P... constants)
decoree - N-ary lambdaindices - array of K indices in strictly ascending order, each 0 <= index < Nconstants - K constant arguments
java.lang.IllegalArgumentException - if indices.length != constants.length| Method Detail |
|---|
public R apply(P... param)
apply in interface ILambda.Nary<R,P>param - (N-K) arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||