oe$a.java 5.28 KB
import com.google.common.base.Predicates;
import com.google.common.collect.AbstractIterator;
import com.google.common.collect.Iterators;
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.f;
import com.google.common.collect.Maps.m;
import com.google.common.collect.Maps.n;
import com.google.common.collect.Multimap;
import com.google.common.collect.SetMultimap;
import com.google.common.collect.Sets;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import javax.annotation.Nullable;

final class oe$a
  extends Maps.m<K, Collection<V>>
{
  oe$a(oe paramoe) {}
  
  private Collection<V> b(@Nullable Object paramObject)
  {
    Collection localCollection = (Collection)this.a.a.asMap().get(paramObject);
    if (localCollection == null) {
      paramObject = null;
    }
    do
    {
      return (Collection<V>)paramObject;
      localCollection = oe.a(localCollection, new oe.c(this.a, paramObject));
      paramObject = localCollection;
    } while (!localCollection.isEmpty());
    return null;
  }
  
  public final Collection<V> a(@Nullable Object paramObject)
  {
    Object localObject1 = (Collection)this.a.a.asMap().get(paramObject);
    if (localObject1 == null) {
      return null;
    }
    ArrayList localArrayList = Lists.newArrayList();
    localObject1 = ((Collection)localObject1).iterator();
    while (((Iterator)localObject1).hasNext())
    {
      Object localObject2 = ((Iterator)localObject1).next();
      if (oe.a(this.a, paramObject, localObject2))
      {
        ((Iterator)localObject1).remove();
        localArrayList.add(localObject2);
      }
    }
    if (localArrayList.isEmpty()) {
      return null;
    }
    if ((this.a.a instanceof SetMultimap)) {
      return Collections.unmodifiableSet(Sets.newLinkedHashSet(localArrayList));
    }
    return Collections.unmodifiableList(localArrayList);
  }
  
  final Set<Map.Entry<K, Collection<V>>> a()
  {
    new Maps.f()
    {
      final Map<K, Collection<V>> a()
      {
        return oe.a.this;
      }
      
      public final Iterator<Map.Entry<K, Collection<V>>> iterator()
      {
        new AbstractIterator()
        {
          final Iterator<Map.Entry<K, Collection<V>>> a = oe.a.this.a.a.asMap().entrySet().iterator();
        };
      }
      
      public final boolean removeAll(Collection<?> paramAnonymousCollection)
      {
        return oe.a.this.a.a(Predicates.in(paramAnonymousCollection));
      }
      
      public final boolean retainAll(Collection<?> paramAnonymousCollection)
      {
        return oe.a.this.a.a(Predicates.not(Predicates.in(paramAnonymousCollection)));
      }
      
      public final int size()
      {
        return Iterators.size(iterator());
      }
    };
  }
  
  final Collection<Collection<V>> b_()
  {
    new Maps.ac(this)
    {
      public final boolean remove(@Nullable Object paramAnonymousObject)
      {
        if ((paramAnonymousObject instanceof Collection))
        {
          paramAnonymousObject = (Collection)paramAnonymousObject;
          Iterator localIterator = oe.a.this.a.a.asMap().entrySet().iterator();
          while (localIterator.hasNext())
          {
            Map.Entry localEntry = (Map.Entry)localIterator.next();
            Object localObject = localEntry.getKey();
            localObject = oe.a((Collection)localEntry.getValue(), new oe.c(oe.a.this.a, localObject));
            if ((!((Collection)localObject).isEmpty()) && (((Collection)paramAnonymousObject).equals(localObject)))
            {
              if (((Collection)localObject).size() == ((Collection)localEntry.getValue()).size()) {
                localIterator.remove();
              }
              for (;;)
              {
                return true;
                ((Collection)localObject).clear();
              }
            }
          }
        }
        return false;
      }
      
      public final boolean removeAll(Collection<?> paramAnonymousCollection)
      {
        return oe.a.this.a.a(Maps.b(Predicates.in(paramAnonymousCollection)));
      }
      
      public final boolean retainAll(Collection<?> paramAnonymousCollection)
      {
        return oe.a.this.a.a(Maps.b(Predicates.not(Predicates.in(paramAnonymousCollection))));
      }
    };
  }
  
  public final void clear()
  {
    this.a.clear();
  }
  
  public final boolean containsKey(@Nullable Object paramObject)
  {
    return b(paramObject) != null;
  }
  
  final Set<K> e()
  {
    new Maps.n(this)
    {
      public final boolean remove(@Nullable Object paramAnonymousObject)
      {
        return oe.a.this.a(paramAnonymousObject) != null;
      }
      
      public final boolean removeAll(Collection<?> paramAnonymousCollection)
      {
        return oe.a.this.a.a(Maps.a(Predicates.in(paramAnonymousCollection)));
      }
      
      public final boolean retainAll(Collection<?> paramAnonymousCollection)
      {
        return oe.a.this.a.a(Maps.a(Predicates.not(Predicates.in(paramAnonymousCollection))));
      }
    };
  }
}


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