kactoos-jvm / nnl.rocks.kactoos.iterator / HeadOf
class HeadOf<out T> :
Iterator
<
T
>
Head portion of the iterator.
There is no thread-safety guarantee.
T
- Element type
head
- Number of head elements.
origin
- Decorated iterator.
Since 0.4
Name | Summary |
---|---|
<init> | HeadOf(head: Int , origin: Iterator < T >) Head portion of the iterator. |
Name | Summary |
---|---|
hasNext | fun hasNext(): Boolean |
next | fun next(): T |