public class IntervalIterator
extends java.lang.Object
implements java.util.Iterator
The iterator returns every number with (from >.= number) and (number <.=
to) starting with from
. The current number is incremented by
step
after every element access.
Constructor and Description |
---|
IntervalIterator(java.lang.Number from,
java.lang.Number to)
IntervalIterator constructor .
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove() |