Kactoos

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

CollectionOf

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

Iterable as Collection.

This class should be used very carefully. You must understand that it will fetch the entire content of the encapsulated Iterable on each method call. It doesn’t cache the data anyhow. If you don’t need this Collection to re-fresh its content on every call, by doing round-trips to the encapsulated iterable, use Sticky.

There is no thread-safety guarantee.

Parameters

T - List type

See Also

Sticky

Since 0.1

Constructors

Name Summary
<init> CollectionOf(src: Iterable<T>)
CollectionOf(vararg array: T)

Inherited Functions

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