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(Collection collection)
Creates an iterator for the given collection.
|
VersionIteratorAdapter(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPosition, getSize, skip
forEachRemaining, hasNext, next, remove
public static final VersionIterator EMPTY
VersionIterator
.public VersionIteratorAdapter(RangeIterator iterator)
RangeIterator
.iterator
- iterator of Version
spublic VersionIteratorAdapter(Iterator iterator)
Iterator
.iterator
- iterator of Version
spublic VersionIteratorAdapter(Collection collection)
collection
- collection of Version
spublic Version nextVersion()
nextVersion
in interface VersionIterator
NoSuchElementException
- if there is no next versionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.