T
- List typepublic final class SyncCollection<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
.
Objects of this class are thread-safe.
StickyCollection
Constructor and Description |
---|
SyncCollection(Collection<T> src)
Ctor.
|
SyncCollection(Iterable<T> src)
Ctor.
|
SyncCollection(Iterator<T> src)
Ctor.
|
SyncCollection(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 SyncCollection(T... array)
array
- An array of some elementspublic SyncCollection(Collection<T> src)
src
- An Iterable
Copyright © 2017–2018 Cactoos. All rights reserved.