Interface GridInClosure3<E1,E2,E3>
- Type Parameters:
E1- Type of the first free variable, i.e. the element the closure is called or closed on.E2- Type of the second free variable, i.e. the element the closure is called or closed on.E3- Type of the third free variable, i.e. the element the closure is called or closed on.
- All Known Implementing Classes:
GridInClosure3X
public interface GridInClosure3<E1,E2,E3>
Defines a convenient
side-effect only closure, i.e. the closure that has void return type.
Since Java 6 doesn't provide a language construct for first-class function the closures are
implemented as interfaces.
Type Alias
To provide for more terse code you can use a typedefCI3 class or various factory methods in
GridFunc class. Note, however, that since typedefs in Java rely on inheritance you should
not use these type aliases in signatures.
Thread Safety
Note that this interface does not impose or assume any specific thread-safety by its implementations. Each implementation can elect what type of thread-safety it provides, if any.- See Also:
-
C3GridFunc
-
Method Summary
-
Method Details
-
apply
Closure body.- Parameters:
e1- First bound free variable, i.e. the element the closure is called or closed on.e2- Second bound free variable, i.e. the element the closure is called or closed on.e3- Third bound free variable, i.e. the element the closure is called or closed on.
-