Package jflex.chars
Class Interval.IntervalIterator
java.lang.Object
jflex.chars.Interval.IntervalIterator
- All Implemented Interfaces:
Iterator<Integer>
,PrimitiveIterator<Integer,
,IntConsumer> PrimitiveIterator.OfInt
- Enclosing class:
Interval
Iterator for enumerating the elements of this Interval
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
New iterator that starts at the beginning of the -
Method Summary
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, next
-
Field Details
-
pos
private int posThe current iterator position
-
-
Constructor Details
-
IntervalIterator
private IntervalIterator()New iterator that starts at the beginning of the
-
-
Method Details
-
hasNext
public boolean hasNext() -
nextInt
public int nextInt()- Specified by:
nextInt
in interfacePrimitiveIterator.OfInt
-