Interface | Description |
---|---|
Collector<T> |
Defines a class that collects values of type T and submits each value to a ResultHandler<>
object immediately on collection.
|
ResultHandler<T> |
Defines objects that handle results from a Collector<>, with a function called immediately as
each value is gathered.
|
YieldAdapter<T> |
A class to convert methods that implement the Collector<> class into a standard Iterable<>.
|
YieldAdapterIterable<T> |
A special version of Iterable<> that returns YieldAdapterIterators<>.
|
Class | Description |
---|---|
ReferenceYieldAdapter<T> |
This reference adapter simply invokes the Collector<>, first gathering the results into a list.
|
ThreadedYieldAdapter<T> |
A class to convert methods that implement the Collector<> class into a standard Iterable<>, using
a new thread created for the collection process, and a SynchronousQueue<> object.
|
YieldAdapterIterator<T> |
A version of a standard Iterator<> used by the yield adapter.
|
Exception | Description |
---|---|
CollectionAbortedException |
An exception class that can be thrown by collectors or results handlers in order to abort or
signal abortion of the collecting process, for any reason.
|
See http://jimblackler.net/blog/?p=61 for documentation.
This code is used by the metroII domain.
http://jimblackler.net/blog/?p=61 stated that this code was in the public domain.