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