Class SortedBase
java.lang.Object
ch.tocco.nice2.outputcenter.api.sorting.SortedBase
- Direct Known Subclasses:
Envelope
,SortedJobs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional
<OutputCenterInputSupplier> findSupplier
(SortableItem item) Returns the document inside the givenSortableItem
.abstract List
<SortableItem> getItems()
Returns allOutputJob
s that are present in this class.<T> Stream
<T> getUnwrapped
(Class<T> type) Returns the subset of the user-defined objects in theSortableItem
s that can be safely casted to the given type.
-
Constructor Details
-
SortedBase
public SortedBase()
-
-
Method Details
-
getItems
-
getUnwrapped
Returns the subset of the user-defined objects in theSortableItem
s that can be safely casted to the given type. -
getOutputJobs
Returns allOutputJob
s that are present in this class. That are all directly linkedOutputJob
s (available viaSortableItem.getElement()
) and the parents from existingOutputJobItem
s. -
findSupplier
Returns the document inside the givenSortableItem
. It is either retrieved from anOutputJob
,OutputJobItem
or the item contains anOutputCenterInputSupplier
as element. If no supplier is found,Optional.empty()
is returned.
-