Define collable collections in java.A callable collection is an interface whose implementers define a single method with no arguments. The Callable interface resembles Runnable, as both are designed for the classes which potentially executed with another thread. The difference is Runnable cannot return value and throw an exception.
The implementing classes have utility methods which convert from one common form to Callable classes.
|