net.sf.staccatocommons.defs
Interface Delayable2<A,B,C>

Type Parameters:
A - first argument type
B - second argument type
C - type of returned thunk
All Known Subinterfaces:
Function2<A,B,C>

@Applicative
public interface Delayable2<A,B,C>

Delayable2s are delayed transformations that two arguments and return a thunk that will perform the actual processing when evaluated, by implementing a delayed(Object, Object) method.

Author:
flbulgarelli
See Also:
Recomendations for implementing, Thunk

Method Summary
 Thunk<C> delayed(A arg0, B arg1)
          Asynchronously applies this Delayable2, by returning a Thunk that will perform the actual transformation each time it is evaluated.
 Thunk<C> delayedValue(Thunk<A> thunk0, Thunk<B> thunk1)
          Asynchronously applies this Delayable2, by returning a Thunk that will perform the actual transformation on the given thunk's values each time it is evaluated.
 

Method Detail

delayed

@NonNull
Thunk<C> delayed(A arg0,
                         B arg1)
Asynchronously applies this Delayable2, by returning a Thunk that will perform the actual transformation each time it is evaluated.

Parameters:
arg0 -
arg1 -
Returns:
a new Thunk. Non null.

delayedValue

@NonNull
Thunk<C> delayedValue(@NonNull
                              Thunk<A> thunk0,
                              @NonNull
                              Thunk<B> thunk1)
Asynchronously applies this Delayable2, by returning a Thunk that will perform the actual transformation on the given thunk's values each time it is evaluated.

Parameters:
thunk0 -
thunk1 -
Returns:
a new Thunk.


Get Staccatocommons at SourceForge.net. Fast, secure and Free Open Source software downloads