Class EnvelopeIterator
java.lang.Object
ch.tocco.nice2.outputcenter.api.sorting.EnvelopeIterator
- All Implemented Interfaces:
Iterator<OutputCenterInputSupplier>
- Direct Known Subclasses:
MarkingEnvelopeIterator
Iterates over all documents in a set of envelopes, while giving access to
status information, like the current envelope and the index of the item
in the current envelope.
-
Constructor Summary
ConstructorDescriptionEnvelopeIterator
(SortedJobs jobs) EnvelopeIterator
(Iterator<Envelope> envelopes) -
Method Summary
Modifier and TypeMethodDescriptionReturns the envelop currently in use.int
Returns the index of the current envelope.int
Returns the index of the current item in the current envelope.int
Returns the number of items in the current envelope.boolean
hasNext()
boolean
boolean
next()
void
remove()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
EnvelopeIterator
-
EnvelopeIterator
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<OutputCenterInputSupplier>
-
next
- Specified by:
next
in interfaceIterator<OutputCenterInputSupplier>
-
getCurrentEnvelope
Returns the envelop currently in use. -
getIndexInEnvelope
public int getIndexInEnvelope()Returns the index of the current item in the current envelope. -
getItemCount
public int getItemCount()Returns the number of items in the current envelope. -
isLastEnvelopeItem
public boolean isLastEnvelopeItem() -
isFirstEnvelopeItem
public boolean isFirstEnvelopeItem() -
getEnvelopeIndex
public int getEnvelopeIndex()Returns the index of the current envelope. -
remove
public void remove()- Specified by:
remove
in interfaceIterator<OutputCenterInputSupplier>
-