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
- Version:
- JFlex 1.9.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNew iterator that starts at the beginning of the -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
nextInt
public int nextInt()- Specified by:
nextIntin interfacePrimitiveIterator.OfInt
-