Class IntRangeIterator
- java.lang.Object
-
- net.automatalib.common.util.collection.IntRangeIterator
-
- All Implemented Interfaces:
Iterator<Integer>,ListIterator<Integer>,PrimitiveIterator<Integer,IntConsumer>,PrimitiveIterator.OfInt
public final class IntRangeIterator extends Object implements ListIterator<Integer>, PrimitiveIterator.OfInt
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
-
Constructor Summary
Constructors Constructor Description IntRangeIterator(int low, int step, int size)IntRangeIterator(int low, int step, int size, int startIdx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Integer e)booleanhasNext()booleanhasPrevious()Integernext()intnextIndex()intnextInt()Integerprevious()intpreviousIndex()intpreviousInt()voidremove()voidset(Integer e)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.PrimitiveIterator.OfInt
forEachRemaining, forEachRemaining
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
nextInt
public int nextInt()
- Specified by:
nextIntin interfacePrimitiveIterator.OfInt
-
next
public Integer next()
- Specified by:
nextin interfaceIterator<Integer>- Specified by:
nextin interfaceListIterator<Integer>- Specified by:
nextin interfacePrimitiveIterator.OfInt
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceListIterator<Integer>
-
previous
public Integer previous()
- Specified by:
previousin interfaceListIterator<Integer>
-
previousInt
public int previousInt()
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfaceListIterator<Integer>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfaceListIterator<Integer>
-
remove
public void remove()
-
set
public void set(Integer e)
- Specified by:
setin interfaceListIterator<Integer>
-
add
public void add(Integer e)
- Specified by:
addin interfaceListIterator<Integer>
-
-