Uses of Class
com.google.common.collect.ImmutableSortedMultiset.Builder
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableSortedMultiset.Builder in com.google.common.collect
Modifier and TypeMethodDescriptionAddselement
to theImmutableSortedMultiset
.Adds each element ofelements
to theImmutableSortedMultiset
.Adds each element ofelements
to theImmutableSortedMultiset
.Adds each element ofelements
to theImmutableSortedMultiset
.Adds a number of occurrences of an element to thisImmutableSortedMultiset
.static <E> ImmutableSortedMultiset.Builder
<E> ImmutableSortedMultiset.builder()
Deprecated.static <E extends Comparable<?>>
ImmutableSortedMultiset.Builder<E> ImmutableSortedMultiset.naturalOrder()
Returns a builder that creates immutable sorted multisets whose elements are ordered by their natural ordering.static <E> ImmutableSortedMultiset.Builder
<E> ImmutableSortedMultiset.orderedBy
(Comparator<E> comparator) Returns a builder that creates immutable sorted multisets with an explicit comparator.static <E extends Comparable<?>>
ImmutableSortedMultiset.Builder<E> ImmutableSortedMultiset.reverseOrder()
Returns a builder that creates immutable sorted multisets whose elements are ordered by the reverse of their natural ordering.Adds or removes the necessary occurrences of an element such that the element attains the desired count.
ImmutableSortedMultiset.naturalOrder()
, which offers better type-safety.