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, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPosition, getSize, skip
public static final VersionIterator EMPTY
VersionIterator
.public VersionIteratorAdapter(RangeIterator iterator)
RangeIterator
.iterator
- iterator of Version
spublic VersionIteratorAdapter(java.util.Iterator iterator)
Iterator
.iterator
- iterator of Version
spublic VersionIteratorAdapter(java.util.Collection collection)
collection
- collection of Version
spublic Version nextVersion()
nextVersion
in interface VersionIterator
java.util.NoSuchElementException
- if there is no next versionCopyright © 2010 - 2020 Adobe. All Rights Reserved