Kactoos

kactoos-jvm / nnl.rocks.kactoos.collection / HeadOf

HeadOf

class HeadOf<out T : Any> : CollectionEnvelope<T>

Head portion of collection.

There is no thread-safety guarantee.

Parameters

T - Type of source item

num - Number of head elements

src - Source collection

Since 0.4

Constructors

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.

Inherited Functions

Name Summary
iterator open fun iterator(): Iterator<X>