|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.rice.cs.cunit.util.ILambda.Nary.UnaryAdaptor<R,P>
public static class ILambda.Nary.UnaryAdaptor<R,P>
Adapter to turn a unary lambda into an N-ary lambda (with N=1).
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 ILambda<R,P> |
_decoree
The unary lambda. |
Constructor Summary | |
---|---|
ILambda.Nary.UnaryAdaptor(ILambda<R,P> decoree)
Creates a new N-ary lambda (with N=1). |
Method Summary | |
---|---|
R |
apply(P... param)
Apply the unary lambda. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ILambda<R,P> _decoree
Constructor Detail |
---|
public ILambda.Nary.UnaryAdaptor(ILambda<R,P> decoree)
decoree
- unary lambdaMethod Detail |
---|
public R apply(P... param)
apply
in interface ILambda.Nary<R,P>
param
- exactly one parameter.
java.lang.IllegalArgumentException
- if param.length != 1
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |