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
ConstructorsConstructorDescriptionEnvelopeIterator(SortedJobs jobs) EnvelopeIterator(Iterator<Envelope> envelopes) -
Method Summary
Modifier and TypeMethodDescriptionReturns the envelop currently in use.intReturns the index of the current envelope.intReturns the index of the current item in the current envelope.intReturns the number of items in the current envelope.booleanhasNext()booleanbooleannext()voidremove()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
EnvelopeIterator
-
EnvelopeIterator
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<OutputCenterInputSupplier>
-
next
- Specified by:
nextin 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:
removein interfaceIterator<OutputCenterInputSupplier>
-