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; /* loaded from: classes2.dex */ public final class HashMultimap extends HashMultimapGwtSerializationDependencies { 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 final /* bridge */ /* synthetic */ Map asMap() { return super.asMap(); } @Override // com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ void clear() { super.clear(); } @Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ boolean containsEntry(Object obj, Object obj2) { return super.containsEntry(obj, obj2); } @Override // com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ boolean containsKey(Object obj) { return super.containsKey(obj); } @Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ boolean containsValue(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 final /* 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 final /* bridge */ /* synthetic */ boolean equals(Object obj) { return super.equals(obj); } @Override // com.google.common.collect.AbstractSetMultimap, com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ Set get(Object obj) { return super.get(obj); } @Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ int hashCode() { return super.hashCode(); } @Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ boolean isEmpty() { return super.isEmpty(); } @Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ Set keySet() { return super.keySet(); } @Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap public final /* 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 final /* bridge */ /* synthetic */ boolean put(Object obj, Object obj2) { return super.put(obj, obj2); } @Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap public final /* 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 final /* bridge */ /* synthetic */ boolean putAll(Object obj, Iterable iterable) { return super.putAll(obj, iterable); } @Override // com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ boolean remove(Object obj, Object obj2) { return super.remove(obj, obj2); } @Override // com.google.common.collect.AbstractSetMultimap, com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ Set removeAll(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 public final /* bridge */ /* synthetic */ Set replaceValues(Object obj, Iterable iterable) { return super.replaceValues(obj, iterable); } @Override // com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ int size() { return super.size(); } @Override // com.google.common.collect.AbstractMultimap public final /* bridge */ /* synthetic */ String toString() { return super.toString(); } @Override // com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ Collection values() { return super.values(); } public static HashMultimap create() { return new HashMultimap<>(); } public static HashMultimap create(int i, int i2) { return new HashMultimap<>(i, i2); } public static HashMultimap create(Multimap 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 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 final Set 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); } }