X
- Type of itempublic final class Synced<X> extends ListEnvelope<X>
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 List
to re-fresh
its content on every call, by doing round-trips to
the encapsulated iterable, use Sticky
.
The list is read only.
Objects of this class are thread-safe.
Constructor and Description |
---|
Synced(Collection<X> list)
Ctor.
|
Synced(Iterable<X> items)
Ctor.
|
Synced(X... items)
Ctor.
|
add, addAll, get, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
@SafeVarargs public Synced(X... items)
items
- The arraypublic Synced(Collection<X> list)
list
- The iterableCopyright © 2017–2019 Cactoos. All rights reserved.