Package org.eclipse.collections.impl.bag.mutable
This package contains implementations of the
MutableBag
interface.
A MutableBag is a Collection
which contains elements that are unordered and may contain duplicate entries. It adds a protocol for
adding, removing, and determining the number of occurrences for an item.
This package contains 3 bag implementations:
-
HashBag
- aMutableBag
which uses a hashtable as its underlying data store. -
SynchronizedBag
- a synchronized view of a bag. -
UnmodifiableBag
- an unmodifiable view of a bag.
This package contains one factory implementation:
-
MutableBagFactoryImpl
- a factory which creates instances of typeMutableBag
.
-
Class Summary Class Description AbstractHashBag<T> AbstractMutableBag<T> AbstractMutableBagIterable<T> HashBag<T> A HashBag is a MutableBag which uses a Map as its underlying data store.MultiReaderHashBag<T> MultiReaderHashBag provides a thread-safe wrapper around a HashBag, using a ReentrantReadWriteLock.MutableBagFactoryImpl SynchronizedBag<T> A synchronized view of aMutableBag
.UnmodifiableBag<T> An unmodifiable view of a bag. -
Enum Summary Enum Description MultiReaderMutableBagFactory