Class SortedBase
java.lang.Object
ch.tocco.nice2.outputcenter.api.sorting.SortedBase
- Direct Known Subclasses:
Envelope, SortedJobs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<OutputCenterInputSupplier> findSupplier(SortableItem item) Returns the document inside the givenSortableItem.abstract List<SortableItem> getItems()Returns allOutputJobs that are present in this class.<T> Stream<T> getUnwrapped(Class<T> type) Returns the subset of the user-defined objects in theSortableItems 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 theSortableItems that can be safely casted to the given type. -
getOutputJobs
Returns allOutputJobs that are present in this class. That are all directly linkedOutputJobs (available viaSortableItem.getElement()) and the parents from existingOutputJobItems. -
findSupplier
Returns the document inside the givenSortableItem. It is either retrieved from anOutputJob,OutputJobItemor the item contains anOutputCenterInputSupplieras element. If no supplier is found,Optional.empty()is returned.
-