Class SortedJobs
java.lang.Object
ch.tocco.nice2.outputcenter.api.sorting.SortedBase
ch.tocco.nice2.outputcenter.api.sorting.SortedJobs
- All Implemented Interfaces:
Iterable<OutputCenterInputSupplier>
The result when sorting a set of
OutputJob
s. It iterates over
all documents that are sorted according to the specification. Besides
that, methods are provided to access certain parts individually.
This object is only mutable from classes in this package. Once obtained
from the JobItemSorter
, it is immutable.
All (public) methods return non-null values and take non-null arguments.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEnvelope
(String recipientAddress) getEnvelope
(Optional<String> recipientAddress) Returns the sorted "envelope" for the given recipient address.Returns the list of envelopes properly ordered.getItems()
Returns allSortableItem
s in the defined order.Returns the sorted list of the *address as string* fields.iterator()
Methods inherited from class ch.tocco.nice2.outputcenter.api.sorting.SortedBase
findSupplier, getOutputJobs, getUnwrapped
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SortedJobs
public SortedJobs()
-
-
Method Details
-
getRecipientAdresses
Returns the sorted list of the *address as string* fields. -
getEnvelope
Returns the sorted "envelope" for the given recipient address. -
getEnvelope
-
getEnvelopes
Returns the list of envelopes properly ordered. -
getItems
Returns allSortableItem
s in the defined order. TheSortableItem
can be used to extract the user-defined objects.- Specified by:
getItems
in classSortedBase
-
getEnvelopeMap
-
iterator
- Specified by:
iterator
in interfaceIterable<OutputCenterInputSupplier>
-