ArrayMap.java 3 KB
package android.support.v4.util;

import ed;
import ed.b;
import ed.e;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

public class ArrayMap<K, V>
  extends SimpleArrayMap<K, V>
  implements Map<K, V>
{
  ed<K, V> a;
  
  public ArrayMap() {}
  
  public ArrayMap(int paramInt)
  {
    super(paramInt);
  }
  
  public ArrayMap(SimpleArrayMap paramSimpleArrayMap)
  {
    super(paramSimpleArrayMap);
  }
  
  private ed<K, V> a()
  {
    if (this.a == null) {
      this.a = new ed()
      {
        protected final int a()
        {
          return ArrayMap.this.h;
        }
        
        protected final int a(Object paramAnonymousObject)
        {
          return ArrayMap.this.indexOfKey(paramAnonymousObject);
        }
        
        protected final Object a(int paramAnonymousInt1, int paramAnonymousInt2)
        {
          return ArrayMap.this.g[((paramAnonymousInt1 << 1) + paramAnonymousInt2)];
        }
        
        protected final V a(int paramAnonymousInt, V paramAnonymousV)
        {
          return (V)ArrayMap.this.setValueAt(paramAnonymousInt, paramAnonymousV);
        }
        
        protected final void a(int paramAnonymousInt)
        {
          ArrayMap.this.removeAt(paramAnonymousInt);
        }
        
        protected final void a(K paramAnonymousK, V paramAnonymousV)
        {
          ArrayMap.this.put(paramAnonymousK, paramAnonymousV);
        }
        
        protected final int b(Object paramAnonymousObject)
        {
          return ArrayMap.this.a(paramAnonymousObject);
        }
        
        protected final Map<K, V> b()
        {
          return ArrayMap.this;
        }
        
        protected final void c()
        {
          ArrayMap.this.clear();
        }
      };
    }
    return this.a;
  }
  
  public boolean containsAll(Collection<?> paramCollection)
  {
    return ed.a(this, paramCollection);
  }
  
  public Set<Map.Entry<K, V>> entrySet()
  {
    ed localed = a();
    if (localed.b == null) {
      localed.b = new ed.b(localed);
    }
    return localed.b;
  }
  
  public Set<K> keySet()
  {
    return a().d();
  }
  
  public void putAll(Map<? extends K, ? extends V> paramMap)
  {
    ensureCapacity(this.h + paramMap.size());
    paramMap = paramMap.entrySet().iterator();
    while (paramMap.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)paramMap.next();
      put(localEntry.getKey(), localEntry.getValue());
    }
  }
  
  public boolean removeAll(Collection<?> paramCollection)
  {
    return ed.b(this, paramCollection);
  }
  
  public boolean retainAll(Collection<?> paramCollection)
  {
    return ed.c(this, paramCollection);
  }
  
  public Collection<V> values()
  {
    ed localed = a();
    if (localed.d == null) {
      localed.d = new ed.e(localed);
    }
    return localed.d;
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/util/ArrayMap.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */