net.metanotion.functor
Class Chain<V1,V2,V3>

java.lang.Object
  extended by net.metanotion.functor.Chain<V1,V2,V3>
All Implemented Interfaces:
Block<V1,V3>

public final class Chain<V1,V2,V3>
extends java.lang.Object
implements Block<V1,V3>


Constructor Summary
Chain(Block<? super V2,? extends V3> b1, Block<? super V1,? extends V2> b2)
           
 
Method Summary
 V3 eval(V1 v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chain

public Chain(Block<? super V2,? extends V3> b1,
             Block<? super V1,? extends V2> b2)
Method Detail

eval

public V3 eval(V1 v)
        throws java.lang.Exception
Specified by:
eval in interface Block<V1,V3>
Throws:
java.lang.Exception