public class VersionIteratorAdapter extends RangeIteratorDecorator implements VersionIterator
| Modifier and Type | Field and Description |
|---|---|
static VersionIterator |
EMPTY
Static instance of an empty
VersionIterator. |
| Constructor and Description |
|---|
VersionIteratorAdapter(java.util.Collection collection)
Creates an iterator for the given collection.
|
VersionIteratorAdapter(java.util.Iterator iterator)
Creates an adapter for the given
Iterator. |
VersionIteratorAdapter(RangeIterator iterator)
Creates an adapter for the given
RangeIterator. |
| Modifier and Type | Method and Description |
|---|---|
Version |
nextVersion()
Returns the next version.
|
getPosition, getSize, hasNext, next, remove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPosition, getSize, skippublic static final VersionIterator EMPTY
VersionIterator.public VersionIteratorAdapter(RangeIterator iterator)
RangeIterator.iterator - iterator of Versionspublic VersionIteratorAdapter(java.util.Iterator iterator)
Iterator.iterator - iterator of Versionspublic VersionIteratorAdapter(java.util.Collection collection)
collection - collection of Versionspublic Version nextVersion()
nextVersion in interface VersionIteratorjava.util.NoSuchElementException - if there is no next versionCopyright © 2010 - 2023 Adobe. All Rights Reserved