T
- Element typepublic final class Limited<T> extends IterableEnvelope<T>
This is a view of an existing iterable containing the given number of its first elements.
There is no thread-safety guarantee.
Constructor and Description |
---|
Limited(int lmt,
Iterable<T> itr)
Ctor.
|
Limited(int lmt,
Iterator<T> itr)
Ctor.
|
Limited(int lmt,
T... itr)
Ctor.
|
iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@SafeVarargs public Limited(int lmt, T... itr)
lmt
- The requested number of elementsitr
- The underlying iterablepublic Limited(int lmt, Iterator<T> itr)
lmt
- The requested number of elementsitr
- The underlying iterableCopyright © 2017 Cactoos. All rights reserved.