T
- Element typepublic final class Shuffled<T> extends CollectionEnvelope<T>
Pay attention that sorting will happen on each operation
with the collection. Every time you touch it, it will fetch the
entire collection from the encapsulated object and shuffle it. If you
want to avoid that "side-effect", decorate it with
StickyCollection
.
There is no thread-safety guarantee.
Constructor and Description |
---|
Shuffled(Collection<T> src)
Ctor.
|
Shuffled(Iterable<T> src)
Ctor.
|
Shuffled(T... src)
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 Shuffled(T... src)
src
- The underlying collectionpublic Shuffled(Collection<T> src)
src
- The underlying collectionCopyright © 2017–2018 Cactoos. All rights reserved.