kactoos-jvm / nnl.rocks.kactoos.collection / 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.
T
- List type
See Also
Since 0.1
Name | Summary |
---|---|
<init> | CollectionOf(src: Iterable < T >) CollectionOf(vararg array: T ) |
Name | Summary |
---|---|
iterator | open fun iterator(): Iterator < X > |