net.sf.staccatocommons.lang.function
Class AbstractDelayable2<A,B,C>
java.lang.Object
net.sf.staccatocommons.lang.function.AbstractDelayable2<A,B,C>
- Type Parameters:
A - B - C -
- All Implemented Interfaces:
- Applicable2<A,B,C>, Delayable2<A,B,C>
- Direct Known Subclasses:
- AbstractFunction2, Block2
public abstract class AbstractDelayable2<A,B,C>
- extends Object
- implements Applicable2<A,B,C>, Delayable2<A,B,C>
- Author:
- flbulgarelli
|
Method Summary |
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 |
Thunk<C> |
delayedValue(Thunk<A> thunk0,
Thunk<B> thunk1)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDelayable2
public AbstractDelayable2()
- Creates a new
AbstractDelayable2
delayed
public 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 Delayable2<A,B,C>
- Parameters:
arg0 - arg1 -
- Returns:
- a new void
Thunk
delayedValue
@NonNull
public Thunk<C> delayedValue(@NonNull
Thunk<A> thunk0,
@NonNull
Thunk<B> thunk1)
- Specified by:
delayedValue in interface Delayable2<A,B,C>