T
- List typepublic final class CollectionOf<T> extends CollectionEnvelope<T>
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 StickyCollection
.
There is no thread-safety guarantee.
StickyCollection
Constructor and Description |
---|
CollectionOf(Iterable<T> src)
Ctor.
|
CollectionOf(Iterator<T> src)
Ctor.
|
CollectionOf(T... array)
Ctor.
|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
@SafeVarargs public CollectionOf(T... array)
array
- An array of some elementsCopyright © 2017–2018 Cactoos. All rights reserved.