public final class CountDownIterable extends Object implements ProtectedIterable<Integer>
CountDownIterable is a ProtectedIterable that generates
Iterators that that yields all integer value between a given
lower value and a given upper bound.
Calling iterator() creates an instance of
CountDownIterator.
| Constructor and Description |
|---|
CountDownIterable(int fromUpper,
int toLower)
Creates a new
CountDownIterable from the given upper and lower
bound. |
| Modifier and Type | Method and Description |
|---|---|
CountDownIterator |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic CountDownIterable(int fromUpper,
int toLower)
CountDownIterable from the given upper and lower
bound.fromUpper - The upper bound and first value to be yielded.toLower - The lower bound and last value to be yielded.public CountDownIterator iterator()
Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.