Class ImmutableSortedMultiset<E>

All Implemented Interfaces:
Multiset<E>, SortedMultiset<E>, Serializable, Iterable<E>, Collection<E>

@GwtIncompatible public abstract class ImmutableSortedMultiset<E> extends ImmutableMultiset<E> implements SortedMultiset<E>
A SortedMultiset whose contents will never change, with many other important properties detailed at ImmutableCollection.

Warning: as with any sorted collection, you are strongly advised not to use a Comparator or Comparable type whose comparison behavior is inconsistent with equals. That is, a.compareTo(b) or comparator.compare(a, b) should equal zero if and only if a.equals(b). If this advice is not followed, the resulting collection will not correctly obey its specification.

See the Guava User Guide article on immutable collections.

Since:
12.0
Author:
Louis Wasserman
See Also: