ok.java 2.01 KB
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Objects;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.collect.Iterables;
import com.google.common.collect.Maps;
import com.google.common.collect.Multimap;
import java.util.AbstractCollection;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map.Entry;
import javax.annotation.Nullable;

@GwtCompatible
final class ok<K, V>
  extends AbstractCollection<V>
{
  private final oj<K, V> a;
  
  ok(oj<K, V> paramoj)
  {
    this.a = ((oj)Preconditions.checkNotNull(paramoj));
  }
  
  public final void clear()
  {
    this.a.clear();
  }
  
  public final boolean contains(@Nullable Object paramObject)
  {
    return this.a.containsValue(paramObject);
  }
  
  public final Iterator<V> iterator()
  {
    return Maps.b(this.a.entries().iterator());
  }
  
  public final boolean remove(@Nullable Object paramObject)
  {
    Predicate localPredicate = this.a.b();
    Iterator localIterator = this.a.a().entries().iterator();
    while (localIterator.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      if ((localPredicate.apply(localEntry)) && (Objects.equal(localEntry.getValue(), paramObject)))
      {
        localIterator.remove();
        return true;
      }
    }
    return false;
  }
  
  public final boolean removeAll(Collection<?> paramCollection)
  {
    return Iterables.removeIf(this.a.a().entries(), Predicates.and(this.a.b(), Maps.b(Predicates.in(paramCollection))));
  }
  
  public final boolean retainAll(Collection<?> paramCollection)
  {
    return Iterables.removeIf(this.a.a().entries(), Predicates.and(this.a.b(), Maps.b(Predicates.not(Predicates.in(paramCollection)))));
  }
  
  public final int size()
  {
    return this.a.size();
  }
}


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