T
- Type of source itempublic final class HeadOf<T> extends CollectionEnvelope<T>
There is no thread-safety guarantee.
Constructor and Description |
---|
HeadOf(int num,
Collection<T> src)
Ctor.
|
HeadOf(int num,
Iterable<T> src)
Ctor.
|
HeadOf(int num,
T... src)
Ctor.
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
parallelStream, removeIf, spliterator, stream
@SafeVarargs public HeadOf(int num, T... src)
num
- Number of head elementssrc
- Source elementspublic HeadOf(int num, Iterable<T> src)
num
- Number of head elementssrc
- Source iterablepublic HeadOf(int num, Collection<T> src)
num
- Number of head elementssrc
- Source collectionCopyright © 2017–2019 Cactoos. All rights reserved.