| Package | Description |
|---|---|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSortedMultiset
A builder for creating immutable multiset instances, especially
public static final multisets ("constant multisets").
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableMultiset |
ImmutableMultiset.Builder.add(E... elements)
Adds each element of
elements to the
ImmutableMultiset.
|
ImmutableMultiset |
ImmutableMultiset.Builder.add(E element)
Adds
element to the
ImmutableMultiset.
|
ImmutableMultiset |
ImmutableMultiset.Builder.addAll(Iterable
Adds each element of
elements to the
ImmutableMultiset.
|
ImmutableMultiset |
ImmutableMultiset.Builder.addAll(Iterator
Adds each element of
elements to the
ImmutableMultiset.
|
ImmutableMultiset |
ImmutableMultiset.Builder.addCopies(E element, int occurrences)
Adds a number of occurrences of an element to this
ImmutableMultiset.
|
static <E> ImmutableMultiset |
ImmutableMultiset.builder()
Returns a new builder.
|
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.
|