qe$e.java 4.52 KB
import com.google.common.base.Function;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Maps.ac;
import com.google.common.collect.Maps.m;
import com.google.common.collect.Sets;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

final class qe$e
  extends Maps.m<C, Map<R, V>>
{
  private qe$e(qe paramqe) {}
  
  public final Map<R, V> a(Object paramObject)
  {
    if (this.a.containsColumn(paramObject)) {
      return this.a.column(paramObject);
    }
    return null;
  }
  
  public final Set<Map.Entry<C, Map<R, V>>> a()
  {
    return new qe.e.a();
  }
  
  final Collection<Map<R, V>> b_()
  {
    return new qe.e.b();
  }
  
  public final boolean containsKey(Object paramObject)
  {
    return this.a.containsColumn(paramObject);
  }
  
  public final Set<C> keySet()
  {
    return this.a.columnKeySet();
  }
  
  final class a
    extends qe<R, C, V>.h<Map.Entry<C, Map<R, V>>>
  {
    a()
    {
      super((byte)0);
    }
    
    public final boolean contains(Object paramObject)
    {
      if ((paramObject instanceof Map.Entry))
      {
        paramObject = (Map.Entry)paramObject;
        if (qe.e.this.a.containsColumn(((Map.Entry)paramObject).getKey()))
        {
          Object localObject = ((Map.Entry)paramObject).getKey();
          return qe.e.this.a(localObject).equals(((Map.Entry)paramObject).getValue());
        }
      }
      return false;
    }
    
    public final Iterator<Map.Entry<C, Map<R, V>>> iterator()
    {
      Maps.a(qe.e.this.a.columnKeySet(), new Function() {});
    }
    
    public final boolean remove(Object paramObject)
    {
      if (contains(paramObject))
      {
        paramObject = (Map.Entry)paramObject;
        qe.a(qe.e.this.a, ((Map.Entry)paramObject).getKey());
        return true;
      }
      return false;
    }
    
    public final boolean removeAll(Collection<?> paramCollection)
    {
      Preconditions.checkNotNull(paramCollection);
      return Sets.a(this, paramCollection.iterator());
    }
    
    public final boolean retainAll(Collection<?> paramCollection)
    {
      Preconditions.checkNotNull(paramCollection);
      boolean bool = false;
      Iterator localIterator = Lists.newArrayList(qe.e.this.a.columnKeySet().iterator()).iterator();
      while (localIterator.hasNext())
      {
        Object localObject = localIterator.next();
        if (!paramCollection.contains(Maps.immutableEntry(localObject, qe.e.this.a.column(localObject))))
        {
          qe.a(qe.e.this.a, localObject);
          bool = true;
        }
      }
      return bool;
    }
    
    public final int size()
    {
      return qe.e.this.a.columnKeySet().size();
    }
  }
  
  final class b
    extends Maps.ac<C, Map<R, V>>
  {
    b()
    {
      super();
    }
    
    public final boolean remove(Object paramObject)
    {
      Iterator localIterator = qe.e.this.entrySet().iterator();
      while (localIterator.hasNext())
      {
        Map.Entry localEntry = (Map.Entry)localIterator.next();
        if (((Map)localEntry.getValue()).equals(paramObject))
        {
          qe.a(qe.e.this.a, localEntry.getKey());
          return true;
        }
      }
      return false;
    }
    
    public final boolean removeAll(Collection<?> paramCollection)
    {
      Preconditions.checkNotNull(paramCollection);
      boolean bool = false;
      Iterator localIterator = Lists.newArrayList(qe.e.this.a.columnKeySet().iterator()).iterator();
      while (localIterator.hasNext())
      {
        Object localObject = localIterator.next();
        if (paramCollection.contains(qe.e.this.a.column(localObject)))
        {
          qe.a(qe.e.this.a, localObject);
          bool = true;
        }
      }
      return bool;
    }
    
    public final boolean retainAll(Collection<?> paramCollection)
    {
      Preconditions.checkNotNull(paramCollection);
      boolean bool = false;
      Iterator localIterator = Lists.newArrayList(qe.e.this.a.columnKeySet().iterator()).iterator();
      while (localIterator.hasNext())
      {
        Object localObject = localIterator.next();
        if (!paramCollection.contains(qe.e.this.a.column(localObject)))
        {
          qe.a(qe.e.this.a, localObject);
          bool = true;
        }
      }
      return bool;
    }
  }
}


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