qe$f.java 2.89 KB
import com.google.common.base.Preconditions;
import com.google.common.collect.ForwardingMapEntry;
import com.google.common.collect.Iterators;
import com.google.common.collect.Maps;
import com.google.common.collect.Maps.f;
import com.google.common.collect.Maps.m;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

public class qe$f
  extends Maps.m<C, V>
{
  protected final R a;
  protected Map<C, V> b;
  
  protected qe$f(R paramR)
  {
    Object localObject;
    this.a = Preconditions.checkNotNull(localObject);
  }
  
  protected final Set<Map.Entry<C, V>> a()
  {
    return new qe.f.a((byte)0);
  }
  
  protected Map<C, V> c()
  {
    if ((this.b == null) || ((this.b.isEmpty()) && (this.c.a.containsKey(this.a))))
    {
      Map localMap = d();
      this.b = localMap;
      return localMap;
    }
    return this.b;
  }
  
  public void clear()
  {
    Map localMap = c();
    if (localMap != null) {
      localMap.clear();
    }
    f();
  }
  
  public boolean containsKey(Object paramObject)
  {
    Map localMap = c();
    return (paramObject != null) && (localMap != null) && (Maps.b(localMap, paramObject));
  }
  
  protected Map<C, V> d()
  {
    return (Map)this.c.a.get(this.a);
  }
  
  protected void f()
  {
    if ((c() != null) && (this.b.isEmpty()))
    {
      this.c.a.remove(this.a);
      this.b = null;
    }
  }
  
  public V get(Object paramObject)
  {
    Map localMap = c();
    if ((paramObject != null) && (localMap != null)) {
      return (V)Maps.a(localMap, paramObject);
    }
    return null;
  }
  
  public V put(C paramC, V paramV)
  {
    Preconditions.checkNotNull(paramC);
    Preconditions.checkNotNull(paramV);
    if ((this.b != null) && (!this.b.isEmpty())) {
      return (V)this.b.put(paramC, paramV);
    }
    return (V)this.c.put(this.a, paramC, paramV);
  }
  
  public V remove(Object paramObject)
  {
    Map localMap = c();
    if (localMap == null) {
      return null;
    }
    paramObject = Maps.c(localMap, paramObject);
    f();
    return (V)paramObject;
  }
  
  final class a
    extends Maps.f<C, V>
  {
    private a() {}
    
    final Map<C, V> a()
    {
      return qe.f.this;
    }
    
    public final Iterator<Map.Entry<C, V>> iterator()
    {
      Map localMap = qe.f.this.c();
      if (localMap == null) {
        return Iterators.a();
      }
      new Iterator()
      {
        public final boolean hasNext()
        {
          return this.a.hasNext();
        }
        
        public final void remove()
        {
          this.a.remove();
          qe.f.this.f();
        }
      };
    }
    
    public final int size()
    {
      Map localMap = qe.f.this.c();
      if (localMap == null) {
        return 0;
      }
      return localMap.size();
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/qe$f.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */