kactoos-jvm / nnl.rocks.kactoos.collection / HeadOf
class HeadOf<out T : Any> : CollectionEnvelope<T>
Head portion of collection.
There is no thread-safety guarantee.
T - Type of source item
num - Number of head elements
src - Source collection
Since 0.4
| Name | Summary |
|---|---|
| <init> | HeadOf(num: Int, vararg src: T)HeadOf(num: Int, src: Iterable<T>)HeadOf(num: Int, src: Collection<T>)Head portion of collection. |
| Name | Summary |
|---|---|
| iterator | open fun iterator(): Iterator<X> |