edu.rice.cs.cunit.util
Class ILambda.NaryAdaptor<R,P>

java.lang.Object
  extended by edu.rice.cs.cunit.util.ILambda.NaryAdaptor<R,P>
All Implemented Interfaces:
ILambda<R,P>
Enclosing interface:
ILambda<R,P>

public static class ILambda.NaryAdaptor<R,P>
extends java.lang.Object
implements ILambda<R,P>

Adapter to turn an N-ary lambda into a unary lambda.


Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.rice.cs.cunit.util.ILambda
ILambda.Binary<R,P,Q>, ILambda.Nary<R,P>, ILambda.NaryAdaptor<R,P>, ILambda.Ternary<R,P,Q,S>
 
Field Summary
private  ILambda.Nary<R,P> _decoree
          The N-ary lambda.
 
Constructor Summary
ILambda.NaryAdaptor(ILambda.Nary<R,P> decoree)
          Creates a new unary lambda.
 
Method Summary
 R apply(P param)
          Apply the N-ary lambda.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_decoree

private ILambda.Nary<R,P> _decoree
The N-ary lambda.

Constructor Detail

ILambda.NaryAdaptor

public ILambda.NaryAdaptor(ILambda.Nary<R,P> decoree)
Creates a new unary lambda.

Parameters:
decoree - N-ary lambda
Method Detail

apply

public R apply(P param)
Apply the N-ary lambda.

Specified by:
apply in interface ILambda<R,P>
Parameters:
param - the parameter.
Returns:
return value of the N-ary lambda