package androidx.collection; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import java.util.Collection; import java.util.Map; import java.util.Set; public class ArrayMap extends SimpleArrayMap implements Map { @Nullable public MapCollections mCollections; /* renamed from: androidx.collection.ArrayMap$1 reason: invalid class name */ public class AnonymousClass1 extends MapCollections { public AnonymousClass1() { } @Override // androidx.collection.MapCollections public void colClear() { ArrayMap.this.clear(); } @Override // androidx.collection.MapCollections public Object colGetEntry(int i, int i2) { return ArrayMap.this.mArray[(i << 1) + i2]; } @Override // androidx.collection.MapCollections public Map colGetMap() { return ArrayMap.this; } @Override // androidx.collection.MapCollections public int colGetSize() { return ArrayMap.this.mSize; } @Override // androidx.collection.MapCollections public int colIndexOfKey(Object obj) { return ArrayMap.this.indexOfKey(obj); } @Override // androidx.collection.MapCollections public int colIndexOfValue(Object obj) { return ArrayMap.this.indexOfValue(obj); } @Override // androidx.collection.MapCollections public void colPut(K k, V v) { ArrayMap.this.put(k, v); } @Override // androidx.collection.MapCollections public void colRemoveAt(int i) { ArrayMap.this.removeAt(i); } @Override // androidx.collection.MapCollections public V colSetValue(int i, V v) { return ArrayMap.this.setValueAt(i, v); } } public ArrayMap() { } public ArrayMap(int i) { super(i); } public ArrayMap(SimpleArrayMap simpleArrayMap) { super(simpleArrayMap); } private MapCollections getCollection() { if (this.mCollections == null) { this.mCollections = new AnonymousClass1(); } return this.mCollections; } public boolean containsAll(@NonNull Collection collection) { return MapCollections.containsAllHelper(this, collection); } @Override // java.util.Map public Set> entrySet() { return getCollection().getEntrySet(); } @Override // java.util.Map public Set keySet() { return getCollection().getKeySet(); } /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: androidx.collection.ArrayMap */ /* JADX WARN: Multi-variable type inference failed */ @Override // java.util.Map public void putAll(Map map) { ensureCapacity(map.size() + this.mSize); for (Map.Entry entry : map.entrySet()) { put(entry.getKey(), entry.getValue()); } } public boolean removeAll(@NonNull Collection collection) { return MapCollections.removeAllHelper(this, collection); } public boolean retainAll(@NonNull Collection collection) { return MapCollections.retainAllHelper(this, collection); } @Override // java.util.Map public Collection values() { return getCollection().getValues(); } }