A Bag 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 interfaces:
Bag
- contains the common API for Mutable and Immutable Bag.
MutableBag
- a Bag whose contents can be altered after initialization.
ImmutableBag
- a Bag whose contents cannot be altered after initialization.
Interface | Description |
---|---|
Bag<T> |
A Bag is a Collection whose elements are unordered and may contain duplicate entries.
|
ImmutableBag<T> | |
ImmutableBagIterable<T> | |
MutableBag<T> |
A MutableBag is a Collection whose elements are unordered and may contain duplicate entries.
|
MutableBagIterable<T> | |
ParallelBag<T> | |
ParallelUnsortedBag<T> | |
UnsortedBag<T> |
Copyright © 2004–2018. All rights reserved.