Class IntIteratorOverIteratingRLW

  • All Implemented Interfaces:
    IntIterator

    public class IntIteratorOverIteratingRLW
    extends Object
    implements IntIterator
    Implementation of an IntIterator over an IteratingRLW.
    • Constructor Detail

      • IntIteratorOverIteratingRLW

        public IntIteratorOverIteratingRLW​(IteratingRLW p)
        Parameters:
        p - iterator we wish to iterate over
    • Method Detail

      • hasNext

        public boolean hasNext()
        Description copied from interface: IntIterator
        Is there more?
        Specified by:
        hasNext in interface IntIterator
        Returns:
        true, if there is more, false otherwise
      • next

        public final int next()
        Description copied from interface: IntIterator
        Return the next integer
        Specified by:
        next in interface IntIterator
        Returns:
        the integer