what-the-bank/sources/com/google/common/collect/LinkedHashMultiset.java

50 lines
1.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.common.collect;
import java.util.Set;
/* loaded from: classes2.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 final /* bridge */ /* synthetic */ boolean contains(Object obj) {
return super.contains(obj);
}
@Override // com.google.common.collect.AbstractMultiset, com.google.common.collect.Multiset
public final /* bridge */ /* synthetic */ Set elementSet() {
return super.elementSet();
}
@Override // com.google.common.collect.AbstractMultiset, com.google.common.collect.Multiset
public final /* bridge */ /* synthetic */ Set entrySet() {
return super.entrySet();
}
@Override // com.google.common.collect.AbstractMultiset, java.util.AbstractCollection, java.util.Collection
public final /* 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
final void init(int i) {
this.backingMap = new ObjectCountLinkedHashMap(i);
}
}