ok.java
2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
*/