zza.java 1.64 KB
package com.google.android.gms.common.util;

import android.support.v4.util.ArrayMap;
import java.util.AbstractSet;
import java.util.Collection;
import java.util.Iterator;
import java.util.Set;

public class zza<E>
  extends AbstractSet<E>
{
  private final ArrayMap<E, E> a;
  
  public zza()
  {
    this.a = new ArrayMap();
  }
  
  public zza(int paramInt)
  {
    this.a = new ArrayMap(paramInt);
  }
  
  public zza(Collection<E> paramCollection)
  {
    this(paramCollection.size());
    addAll(paramCollection);
  }
  
  public boolean add(E paramE)
  {
    if (this.a.containsKey(paramE)) {
      return false;
    }
    this.a.put(paramE, paramE);
    return true;
  }
  
  public boolean addAll(Collection<? extends E> paramCollection)
  {
    if ((paramCollection instanceof zza)) {
      return zza((zza)paramCollection);
    }
    return super.addAll(paramCollection);
  }
  
  public void clear()
  {
    this.a.clear();
  }
  
  public boolean contains(Object paramObject)
  {
    return this.a.containsKey(paramObject);
  }
  
  public Iterator<E> iterator()
  {
    return this.a.keySet().iterator();
  }
  
  public boolean remove(Object paramObject)
  {
    if (!this.a.containsKey(paramObject)) {
      return false;
    }
    this.a.remove(paramObject);
    return true;
  }
  
  public int size()
  {
    return this.a.size();
  }
  
  public boolean zza(zza<? extends E> paramzza)
  {
    int i = size();
    this.a.putAll(paramzza.a);
    return size() > i;
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/common/util/zza.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */