public class VersionIteratorAdapter extends RangeIteratorDecorator implements VersionIterator
| Modifier and Type | Field and Description | 
|---|---|
| static VersionIterator | EMPTYStatic 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, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPosition, getSize, skipforEachRemaining, hasNext, next, removepublic static final VersionIterator EMPTY
VersionIterator.public VersionIteratorAdapter(RangeIterator iterator)
RangeIterator.iterator - iterator of Versionspublic VersionIteratorAdapter(Iterator iterator)
Iterator.iterator - iterator of Versionspublic VersionIteratorAdapter(Collection collection)
collection - collection of Versionspublic Version nextVersion()
nextVersion in interface VersionIteratorNoSuchElementException - if there is no next versionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.