T
- List typepublic final class Synced<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 Sticky
.
Objects of this class are thread-safe.
Sticky
Constructor and Description |
---|
Synced(Collection<T> src)
Ctor.
|
Synced(Iterable<T> src)
Ctor.
|
Synced(T... array)
Ctor.
|
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
equals, hashCode, iterator, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, iterator, parallelStream, removeIf, spliterator, stream
@SafeVarargs public Synced(T... array)
array
- An array of some elementspublic Synced(Collection<T> src)
src
- An Iterable
Copyright © 2017–2019 Cactoos. All rights reserved.