A sorted bag is a Collection which contains elements that are sorted, 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:
SortedBag - contains the common API for Mutable and Immutable SortedBag.
MutableSortedBag - a SortedBag whose contents can be altered after initialization.
ImmutableSortedBag - a SortedBag whose contents cannot be altered after initialization.
| Interface | Description |
|---|---|
| ImmutableSortedBag<T> |
ImmutableSortedBag is the non-modifiable equivalent interface to
MutableSortedBag. |
| MutableSortedBag<T> | |
| ParallelSortedBag<T> | |
| SortedBag<T> |
An Iterable whose elements are sorted by some comparator or their natural ordering and may contain duplicate entries.
|
Copyright © 2004–2018. All rights reserved.