public final class CountUpIterator extends Object implements ProtectedIterator<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 fromLower,
int toUpper)
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 fromLower,
int toUpper)
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.
fromLower - The lower bound and first value to be yielded.toUpper - The upper bound and last value to be yielded.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.