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