public final class CountDownIterator extends AbstractIndexedIterator<Integer>
CountDownIterator is an AbstractIndexedIterator that yields
all integer value between a given upper bound and a given lower bound.| Constructor and Description |
|---|
CountDownIterator(int fromUpper,
int toLower)
Creates a new
CountDownIterator. |
| Modifier and Type | Method and Description |
|---|---|
Integer |
get(int index)
Returns the payload value at the given index.
|
hasNext, hasPrevious, next, previousremoveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveforEachRemainingpublic CountDownIterator(int fromUpper,
int toLower)
CountDownIterator.
If fromUpper == toLower, only one value will be yielded. If
fromUpper < toLower, 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.public Integer get(int index)
AbstractIndexedIteratorget in class AbstractIndexedIterator<Integer>index - The index to be used, which is guaranteed to be non-negative
and smaller then the maximum index.Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.