A sorted bag is a java. 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:
org.eclipse.collections.api.bag.sorted.SortedBag - contains the common API for Mutable and Immutable SortedBag.
org.eclipse.collections.api.bag.sorted.MutableSortedBag - a SortedBag whose contents can be altered after initialization.
org.eclipse.collections.api.bag.sorted.ImmutableSortedBag - a SortedBag whose contents cannot be altered after initialization.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | ImmutableSortedBag<T>
ImmutableSortedBag is the non-modifiable equivalent interface to |
| public interface | |
| public interface | |
| public interface | SortedBag<T>
An Iterable whose elements are sorted by some comparator or their natural ordering and may contain duplicate entries. |