public final class CountUpIterator extends AbstractIndexedIterator<Integer>
CountUpIterator is an AbstractIndexedIterator that yields
all integer value between a given lower bound and a given upper bound.| Constructor and Description |
|---|
CountUpIterator(int fromLower,
int toUpper)
Creates a new
CountUpIterator. |
| 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 CountUpIterator(int fromLower,
int toUpper)
CountUpIterator.
If fromLower == toUpper, only one value will be yielded. If
fromLower > toUpper, 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.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.