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 void
add(Integer e)
boolean
hasNext()
boolean
hasPrevious()
Integer
next()
int
nextIndex()
int
nextInt()
Integer
previous()
int
previousIndex()
int
previousInt()
void
remove()
void
set(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:
nextInt
in interfacePrimitiveIterator.OfInt
-
next
public Integer next()
- Specified by:
next
in interfaceIterator<Integer>
- Specified by:
next
in interfaceListIterator<Integer>
- Specified by:
next
in interfacePrimitiveIterator.OfInt
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceListIterator<Integer>
-
previous
public Integer previous()
- Specified by:
previous
in interfaceListIterator<Integer>
-
previousInt
public int previousInt()
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfaceListIterator<Integer>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<Integer>
-
remove
public void remove()
-
set
public void set(Integer e)
- Specified by:
set
in interfaceListIterator<Integer>
-
add
public void add(Integer e)
- Specified by:
add
in interfaceListIterator<Integer>
-
-