Lines Matching refs:HashMultiset
31 public final class HashMultiset<E> extends AbstractMapBasedMultiset<E> {
34 * Creates a new, empty {@code HashMultiset} using the default initial
37 public static <E> HashMultiset<E> create() {
38 return new HashMultiset<E>();
42 * Creates a new, empty {@code HashMultiset} with the specified expected
48 public static <E> HashMultiset<E> create(int distinctElements) {
49 return new HashMultiset<E>(distinctElements);
53 * Creates a new {@code HashMultiset} containing the specified elements.
60 public static <E> HashMultiset<E> create(Iterable<? extends E> elements) {
61 HashMultiset<E> multiset =
67 private HashMultiset() {
71 private HashMultiset(int distinctElements) {