net.sf.staccatocommons.lang.function
Class AbstractDelayable2<A,B,C>

java.lang.Object
  extended by net.sf.staccatocommons.lang.function.AbstractDelayable2<A,B,C>
Type Parameters:
A -
B -
C -
All Implemented Interfaces:
net.sf.staccatocommons.defs.Applicable2<A,B,C>, net.sf.staccatocommons.defs.Delayable2<A,B,C>
Direct Known Subclasses:
AbstractFunction2, Block2

public abstract class AbstractDelayable2<A,B,C>
extends Object
implements net.sf.staccatocommons.defs.Applicable2<A,B,C>, net.sf.staccatocommons.defs.Delayable2<A,B,C>

Author:
flbulgarelli

Constructor Summary
AbstractDelayable2()
          Creates a new AbstractDelayable2
 
Method Summary
 net.sf.staccatocommons.defs.Thunk<C> delayed(A arg0, B arg1)
          Delays execution of this block by returning a void thunk that will evaluate exec(arg1, arg2) each time its value is required
 net.sf.staccatocommons.defs.Thunk<C> delayedValue(net.sf.staccatocommons.defs.Thunk<A> thunk0, net.sf.staccatocommons.defs.Thunk<B> thunk1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.staccatocommons.defs.Applicable2
apply
 

Constructor Detail

AbstractDelayable2

public AbstractDelayable2()
Creates a new AbstractDelayable2

Method Detail

delayed

public net.sf.staccatocommons.defs.Thunk<C> delayed(A arg0,
                                                    B arg1)
Delays execution of this block by returning a void thunk that will evaluate exec(arg1, arg2) each time its value is required

Specified by:
delayed in interface net.sf.staccatocommons.defs.Delayable2<A,B,C>
Parameters:
arg0 -
arg1 -
Returns:
a new void Thunk

delayedValue

@NonNull
public net.sf.staccatocommons.defs.Thunk<C> delayedValue(@NonNull
                                                                 net.sf.staccatocommons.defs.Thunk<A> thunk0,
                                                                 @NonNull
                                                                 net.sf.staccatocommons.defs.Thunk<B> thunk1)
Specified by:
delayedValue in interface net.sf.staccatocommons.defs.Delayable2<A,B,C>


Copyright © 2010-2012 Staccatocommons. All Rights Reserved.