mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 17:42:33 -06:00
173 lines
7.6 KiB
Java
173 lines
7.6 KiB
Java
package com.google.common.collect;
|
|
|
|
import com.google.common.base.Preconditions;
|
|
import java.io.IOException;
|
|
import java.io.ObjectInputStream;
|
|
import java.io.ObjectOutputStream;
|
|
import java.util.Collection;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import javax.annotation.CheckForNull;
|
|
|
|
@ElementTypesAreNonnullByDefault
|
|
/* loaded from: classes3.dex */
|
|
public final class HashMultimap<K, V> extends HashMultimapGwtSerializationDependencies<K, V> {
|
|
private static final int DEFAULT_VALUES_PER_KEY = 2;
|
|
private static final long serialVersionUID = 0;
|
|
transient int expectedValuesPerKey;
|
|
|
|
@Override // com.google.common.collect.AbstractSetMultimap, com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap, com.google.common.collect.ListMultimap
|
|
public /* bridge */ /* synthetic */ Map asMap() {
|
|
return super.asMap();
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ void clear() {
|
|
super.clear();
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ boolean containsEntry(@CheckForNull Object obj, @CheckForNull Object obj2) {
|
|
return super.containsEntry(obj, obj2);
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ boolean containsKey(@CheckForNull Object obj) {
|
|
return super.containsKey(obj);
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ boolean containsValue(@CheckForNull Object obj) {
|
|
return super.containsValue(obj);
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractSetMultimap, com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ Set entries() {
|
|
return super.entries();
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractSetMultimap, com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap, com.google.common.collect.ListMultimap
|
|
public /* bridge */ /* synthetic */ boolean equals(@CheckForNull Object obj) {
|
|
return super.equals(obj);
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractSetMultimap, com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.Multimap, com.google.common.collect.ListMultimap
|
|
public /* bridge */ /* synthetic */ Set get(@ParametricNullness Object obj) {
|
|
return super.get(obj);
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ int hashCode() {
|
|
return super.hashCode();
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ boolean isEmpty() {
|
|
return super.isEmpty();
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ Set keySet() {
|
|
return super.keySet();
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ Multiset keys() {
|
|
return super.keys();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // com.google.common.collect.AbstractSetMultimap, com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ boolean put(@ParametricNullness Object obj, @ParametricNullness Object obj2) {
|
|
return super.put(obj, obj2);
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ boolean putAll(Multimap multimap) {
|
|
return super.putAll(multimap);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ boolean putAll(@ParametricNullness Object obj, Iterable iterable) {
|
|
return super.putAll(obj, iterable);
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ boolean remove(@CheckForNull Object obj, @CheckForNull Object obj2) {
|
|
return super.remove(obj, obj2);
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractSetMultimap, com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.Multimap, com.google.common.collect.ListMultimap
|
|
public /* bridge */ /* synthetic */ Set removeAll(@CheckForNull Object obj) {
|
|
return super.removeAll(obj);
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractSetMultimap, com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap, com.google.common.collect.ListMultimap
|
|
public /* bridge */ /* synthetic */ Set replaceValues(@ParametricNullness Object obj, Iterable iterable) {
|
|
return super.replaceValues(obj, iterable);
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ int size() {
|
|
return super.size();
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMultimap
|
|
public /* bridge */ /* synthetic */ String toString() {
|
|
return super.toString();
|
|
}
|
|
|
|
@Override // com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap
|
|
public /* bridge */ /* synthetic */ Collection values() {
|
|
return super.values();
|
|
}
|
|
|
|
public static <K, V> HashMultimap<K, V> create() {
|
|
return new HashMultimap<>();
|
|
}
|
|
|
|
public static <K, V> HashMultimap<K, V> create(int i, int i2) {
|
|
return new HashMultimap<>(i, i2);
|
|
}
|
|
|
|
public static <K, V> HashMultimap<K, V> create(Multimap<? extends K, ? extends V> multimap) {
|
|
return new HashMultimap<>(multimap);
|
|
}
|
|
|
|
private HashMultimap() {
|
|
this(12, 2);
|
|
}
|
|
|
|
private HashMultimap(int i, int i2) {
|
|
super(Platform.newHashMapWithExpectedSize(i));
|
|
this.expectedValuesPerKey = 2;
|
|
Preconditions.checkArgument(i2 >= 0);
|
|
this.expectedValuesPerKey = i2;
|
|
}
|
|
|
|
private HashMultimap(Multimap<? extends K, ? extends V> multimap) {
|
|
super(Platform.newHashMapWithExpectedSize(multimap.keySet().size()));
|
|
this.expectedValuesPerKey = 2;
|
|
putAll(multimap);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // com.google.common.collect.AbstractSetMultimap, com.google.common.collect.AbstractMapBasedMultimap
|
|
public Set<V> createCollection() {
|
|
return Platform.newHashSetWithExpectedSize(this.expectedValuesPerKey);
|
|
}
|
|
|
|
private void writeObject(ObjectOutputStream objectOutputStream) throws IOException {
|
|
objectOutputStream.defaultWriteObject();
|
|
Serialization.writeMultimap(this, objectOutputStream);
|
|
}
|
|
|
|
private void readObject(ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException {
|
|
objectInputStream.defaultReadObject();
|
|
this.expectedValuesPerKey = 2;
|
|
int readCount = Serialization.readCount(objectInputStream);
|
|
setMap(Platform.newHashMapWithExpectedSize(12));
|
|
Serialization.populateMultimap(this, objectInputStream, readCount);
|
|
}
|
|
}
|