Rabbit-R1/switch port/java/sources/com/google/common/collect/HashMultiset.java
2024-05-21 17:08:36 -04:00

53 lines
1.8 KiB
Java

package com.google.common.collect;
import java.util.Set;
import javax.annotation.CheckForNull;
@ElementTypesAreNonnullByDefault
/* loaded from: classes3.dex */
public final class HashMultiset<E> extends AbstractMapBasedMultiset<E> {
private static final long serialVersionUID = 0;
@Override // com.google.common.collect.AbstractMultiset, java.util.AbstractCollection, java.util.Collection, com.google.common.collect.Multiset
public /* bridge */ /* synthetic */ boolean contains(@CheckForNull Object obj) {
return super.contains(obj);
}
@Override // com.google.common.collect.AbstractMultiset, com.google.common.collect.Multiset
public /* bridge */ /* synthetic */ Set elementSet() {
return super.elementSet();
}
@Override // com.google.common.collect.AbstractMultiset, com.google.common.collect.Multiset
public /* bridge */ /* synthetic */ Set entrySet() {
return super.entrySet();
}
@Override // com.google.common.collect.AbstractMultiset, java.util.AbstractCollection, java.util.Collection
public /* bridge */ /* synthetic */ boolean isEmpty() {
return super.isEmpty();
}
public static <E> HashMultiset<E> create() {
return create(3);
}
public static <E> HashMultiset<E> create(int i) {
return new HashMultiset<>(i);
}
public static <E> HashMultiset<E> create(Iterable<? extends E> iterable) {
HashMultiset<E> create = create(Multisets.inferDistinctElements(iterable));
Iterables.addAll(create, iterable);
return create;
}
HashMultiset(int i) {
super(i);
}
@Override // com.google.common.collect.AbstractMapBasedMultiset
ObjectCountHashMap<E> newBackingMap(int i) {
return new ObjectCountHashMap<>(i);
}
}