Class VersionIteratorAdapter

    • Constructor Detail

      • VersionIteratorAdapter

        public VersionIteratorAdapter​(RangeIterator iterator)
        Creates an adapter for the given RangeIterator.
        Parameters:
        iterator - iterator of Versions
      • VersionIteratorAdapter

        public VersionIteratorAdapter​(java.util.Iterator iterator)
        Creates an adapter for the given Iterator.
        Parameters:
        iterator - iterator of Versions
      • VersionIteratorAdapter

        public VersionIteratorAdapter​(java.util.Collection collection)
        Creates an iterator for the given collection.
        Parameters:
        collection - collection of Versions
    • Method Detail

      • nextVersion

        public Version nextVersion()
        Returns the next version.
        Specified by:
        nextVersion in interface VersionIterator
        Returns:
        next version
        Throws:
        java.util.NoSuchElementException - if there is no next version