Lines Matching refs:HashMultiset
35 public final class HashMultiset<E> extends AbstractMapBasedMultiset<E> {
38 * Creates a new, empty {@code HashMultiset} using the default initial
41 public static <E> HashMultiset<E> create() {
42 return new HashMultiset<E>();
46 * Creates a new, empty {@code HashMultiset} with the specified expected
52 public static <E> HashMultiset<E> create(int distinctElements) {
53 return new HashMultiset<E>(distinctElements);
57 * Creates a new {@code HashMultiset} containing the specified elements.
64 public static <E> HashMultiset<E> create(Iterable<? extends E> elements) {
65 HashMultiset<E> multiset =
71 private HashMultiset() {
75 private HashMultiset(int distinctElements) {