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

51 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 LinkedHashMultiset<E> extends AbstractMapBasedMultiset<E> {
@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> LinkedHashMultiset<E> create() {
return create(3);
}
public static <E> LinkedHashMultiset<E> create(int i) {
return new LinkedHashMultiset<>(i);
}
public static <E> LinkedHashMultiset<E> create(Iterable<? extends E> iterable) {
LinkedHashMultiset<E> create = create(Multisets.inferDistinctElements(iterable));
Iterables.addAll(create, iterable);
return create;
}
LinkedHashMultiset(int i) {
super(i);
}
@Override // com.google.common.collect.AbstractMapBasedMultiset
ObjectCountHashMap<E> newBackingMap(int i) {
return new ObjectCountLinkedHashMap(i);
}
}