Kactoos

kactoos-jvm / nnl.rocks.kactoos.iterator / Sorted

Sorted

class Sorted<out T : Any> : Iterator<T>

Sorted iterator.

There is no thread-safety guarantee.

Parameters

T - Element type

Since 0.3

Constructors

Name Summary
<init> Sorted(comparator: Comparator<T>, iterator: Iterator<T>)

Companion Object Functions

Name Summary
invoke operator fun <T : Comparable<T>> invoke(items: Iterator<T>): Sorted<T>