Class WrappingRangeIterator

  • All Implemented Interfaces:
    java.util.Iterator<java.lang.Integer>

    public class WrappingRangeIterator
    extends java.lang.Object
    implements java.util.Iterator<java.lang.Integer>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int currentValue  
      private int limit  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      java.lang.Integer next()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Field Detail

      • limit

        private final int limit
      • currentValue

        private int currentValue
    • Constructor Detail

      • WrappingRangeIterator

        public WrappingRangeIterator​(int limit)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.lang.Integer>
      • next

        public java.lang.Integer next()
        Specified by:
        next in interface java.util.Iterator<java.lang.Integer>