-
static class
A builder for creating immutable multiset instances, especially public static final
multisets ("constant multisets").
ImmutableMultiset.Builder.add(E element)
Adds element to the ImmutableMultiset.
ImmutableMultiset.Builder.add(E... elements)
Adds each element of elements to the ImmutableMultiset.
Adds each element of elements to the ImmutableMultiset.
Adds each element of elements to the ImmutableMultiset.
ImmutableMultiset.Builder.addCopies(E element,
int occurrences)
Adds a number of occurrences of an element to this ImmutableMultiset.
ImmutableMultiset.Builder.setCount(E element,
int count)
Adds or removes the necessary occurrences of an element such that the element attains the
desired count.