public final class CountUpIterator extends Object implements Iterator<Integer>
CountUpIterator is an Iterator that yields all integer
value between a given lower value and a given upper bound.| Constructor and Description |
|---|
CountUpIterator(int lower,
int upper)
Creates a new
CountUpIterator from the given lower and upper
bound. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Integer |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic CountUpIterator(int lower,
int upper)
CountUpIterator from the given lower and upper
bound.
If lower == upper, only one value will be yielded. If
lower > upper, no value will be yielded.
lower - The lower bound and first value to be yielded.upper - The upper bound and last value to be yielded.Copyright © 2015 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.