package com.google.common.collect; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; /* loaded from: classes2.dex */ public final class ArrayListMultimap extends ArrayListMultimapGwtSerializationDependencies { private static final int DEFAULT_VALUES_PER_KEY = 3; private static final long serialVersionUID = 0; transient int expectedValuesPerKey; @Override // com.google.common.collect.AbstractListMultimap, 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.AbstractMapBasedMultimap, com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ Collection entries() { return super.entries(); } @Override // com.google.common.collect.AbstractListMultimap, 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.AbstractListMultimap, com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ List 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.AbstractListMultimap, 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.AbstractListMultimap, com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ List removeAll(Object obj) { return super.removeAll(obj); } @Override // com.google.common.collect.AbstractListMultimap, com.google.common.collect.AbstractMapBasedMultimap, com.google.common.collect.AbstractMultimap, com.google.common.collect.Multimap public final /* bridge */ /* synthetic */ List 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 ArrayListMultimap create() { return new ArrayListMultimap<>(); } public static ArrayListMultimap create(int i, int i2) { return new ArrayListMultimap<>(i, i2); } public static ArrayListMultimap create(Multimap multimap) { return new ArrayListMultimap<>(multimap); } private ArrayListMultimap() { this(12, 3); } private ArrayListMultimap(int i, int i2) { super(Platform.newHashMapWithExpectedSize(i)); CollectPreconditions.checkNonnegative(i2, "expectedValuesPerKey"); this.expectedValuesPerKey = i2; } private ArrayListMultimap(Multimap multimap) { this(multimap.keySet().size(), multimap instanceof ArrayListMultimap ? ((ArrayListMultimap) multimap).expectedValuesPerKey : 3); putAll(multimap); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.AbstractListMultimap, com.google.common.collect.AbstractMapBasedMultimap public final List createCollection() { return new ArrayList(this.expectedValuesPerKey); } @Deprecated public final void trimToSize() { Iterator> it = backingMap().values().iterator(); while (it.hasNext()) { ((ArrayList) it.next()).trimToSize(); } } 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 = 3; int readCount = Serialization.readCount(objectInputStream); setMap(CompactHashMap.create()); Serialization.populateMultimap(this, objectInputStream, readCount); } }