| Package | Description |
|---|---|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> HashMultiset |
HashMultiset.create()
Creates a new, empty
HashMultiset using the default initial capacity.
|
static <E> HashMultiset |
HashMultiset.create(int distinctElements)
Creates a new, empty
HashMultiset with the specified expected number of distinct elements.
|
static <E> HashMultiset |
HashMultiset.create(Iterable
Creates a new
HashMultiset containing the specified elements.
|