content: package androidx.collection;
  
  import java.util.Collection;
  import java.util.Map;
  import java.util.Set;
  
  public class ArrayMap<K, V> extends SimpleArrayMap<K, V> implements Map<K, V> {
      MapCollections<K, V> mCollections;
  
      public ArrayMap() {
      }
  
      public ArrayMap(int capacity) {
          super(capacity);
      }
  
      public ArrayMap(SimpleArrayMap map) {
          super(map);
      }
  
      private MapCollections<K, V> getCollection() {
          if (this.mCollections == null) {
              this.mCollections = new MapCollections<K, V>() {
                  /* access modifiers changed from: protected */
                  public void colClear() {
                      ArrayMap.this.clear();
                  }
  
                  /* access modifiers changed from: protected */
                  public Object colGetEntry(int index, int offset) {
                      return ArrayMap.this.mArray[(index << 1) + offset];
                  }
  
                  /* access modifiers changed from: protected */
                  public Map<K, V> colGetMap() {
                      return ArrayMap.this;
                  }
  
                  /* access modifiers changed from: protected */
                  public int colGetSize() {
                      return ArrayMap.this.mSize;
                  }
  
                  /* access modifiers changed from: protected */
                  public int colIndexOfKey(Object key) {
                      return ArrayMap.this.indexOfKey(key);
                  }
  
                  /* access modifiers changed from: protected */
                  public int colIndexOfValue(Object value) {
                      return ArrayMap.this.indexOfValue(value);
                  }
  
                  /* access modifiers changed from: protected */
                  public void colPut(K k, V v) {
                      ArrayMap.this.put(k, v);
                  }
  
                  /* access modifiers changed from: protected */
                  public void colRemoveAt(int index) {
                      ArrayMap.this.removeAt(index);
                  }
  
                  /* access modifiers changed from: protected */
                  public V colSetValue(int index, V v) {
                      return ArrayMap.this.setValueAt(index, v);
                  }
              };
          }
          return this.mCollections;
      }
  
      public boolean containsAll(Collection<?> collection) {
          return MapCollections.containsAllHelper(this, collection);
      }
  
      public Set<Map.Entry<K, V>> entrySet() {
          return getCollection().getEntrySet();
      }
  
      public Set<K> keySet() {
          return getCollection().getKeySet();
      }
  
      public void putAll(Map<? extends K, ? extends V> map) {
          ensureCapacity(this.mSize + map.size());
          for (Map.Entry next : map.entrySet()) {
              put(next.getKey(), next.getValue());
          }
      }
  
      public boolean removeAll(Collection<?> collection) {
          return MapCollections.removeAllHelper(this, collection);
      }
  
      public boolean retainAll(Collection<?> collection) {
          return MapCollections.retainAllHelper(this, collection);
      }
  
      public Collection<V> values() {
          return getCollection().getValues();
      }
  }
  