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

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

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

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.rice.cs.cunit.util.ILambda.Ternary
ILambda.Ternary.Bind1st<R,P,Q,S>, ILambda.Ternary.Bind1st2nd<R,P,Q,S>, ILambda.Ternary.Bind1st3rd<R,P,Q,S>, ILambda.Ternary.Bind2nd<R,P,Q,S>, ILambda.Ternary.Bind2nd3rd<R,P,Q,S>, ILambda.Ternary.Bind3rd<R,P,Q,S>, ILambda.Ternary.Max<T extends java.lang.Comparable<T>>, ILambda.Ternary.Min<T extends java.lang.Comparable<T>>, ILambda.Ternary.NaryAdaptor<R,P>
 
Field Summary
private  ILambda.Nary<R,P> _decoree
          The N-ary lambda.
 
Constructor Summary
ILambda.Ternary.NaryAdaptor(ILambda.Nary<R,P> decoree)
          Creates a new ternary lambda.
 
Method Summary
 R apply(P param1, P param2, P param3)
          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.Ternary.NaryAdaptor

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

Parameters:
decoree - N-ary lambda
Method Detail

apply

public R apply(P param1,
               P param2,
               P param3)
Apply the N-ary lambda.

Specified by:
apply in interface ILambda.Ternary<R,P,P,P>
Parameters:
param1 - the first parameter.
param2 - the second parameter.
param3 - the third parameter.
Returns:
return value of the N-ary lambda