oe.java
10.8 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.collect.AbstractIterator;
import com.google.common.collect.Collections2;
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.Multimaps.g;
import com.google.common.collect.Multiset;
import com.google.common.collect.Multiset.Entry;
import com.google.common.collect.Multisets.c;
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;
@GwtCompatible
public class oe<K, V>
extends mx<K, V>
implements oj<K, V>
{
final Multimap<K, V> a;
final Predicate<? super Map.Entry<K, V>> b;
public oe(Multimap<K, V> paramMultimap, Predicate<? super Map.Entry<K, V>> paramPredicate)
{
this.a = ((Multimap)Preconditions.checkNotNull(paramMultimap));
this.b = ((Predicate)Preconditions.checkNotNull(paramPredicate));
}
static <E> Collection<E> a(Collection<E> paramCollection, Predicate<? super E> paramPredicate)
{
if ((paramCollection instanceof Set)) {
return Sets.filter((Set)paramCollection, paramPredicate);
}
return Collections2.filter(paramCollection, paramPredicate);
}
public Multimap<K, V> a()
{
return this.a;
}
final boolean a(Predicate<? super Map.Entry<K, Collection<V>>> paramPredicate)
{
Iterator localIterator = this.a.asMap().entrySet().iterator();
boolean bool = false;
Collection localCollection;
if (localIterator.hasNext())
{
Map.Entry localEntry = (Map.Entry)localIterator.next();
Object localObject = localEntry.getKey();
localCollection = a((Collection)localEntry.getValue(), new oe.c(localObject));
if ((localCollection.isEmpty()) || (!paramPredicate.apply(Maps.immutableEntry(localObject, localCollection)))) {
break label150;
}
if (localCollection.size() == ((Collection)localEntry.getValue()).size())
{
localIterator.remove();
label133:
bool = true;
}
}
label150:
for (;;)
{
break;
localCollection.clear();
break label133;
return bool;
}
}
public final Predicate<? super Map.Entry<K, V>> b()
{
return this.b;
}
public void clear()
{
entries().clear();
}
public boolean containsKey(@Nullable Object paramObject)
{
return asMap().get(paramObject) != null;
}
final Iterator<Map.Entry<K, V>> g()
{
throw new AssertionError("should never be called");
}
public Collection<V> get(K paramK)
{
return a(this.a.get(paramK), new oe.c(paramK));
}
final Map<K, Collection<V>> h()
{
return new oe.a();
}
Collection<Map.Entry<K, V>> i()
{
return a(this.a.entries(), this.b);
}
final Multiset<K> j()
{
return new oe.b();
}
final Collection<V> k()
{
return new ok(this);
}
public Set<K> keySet()
{
return asMap().keySet();
}
public Collection<V> removeAll(@Nullable Object paramObject)
{
Object localObject = asMap().remove(paramObject);
if ((this.a instanceof SetMultimap)) {}
for (paramObject = Collections.emptySet();; paramObject = Collections.emptyList()) {
return (Collection)MoreObjects.firstNonNull(localObject, paramObject);
}
}
public int size()
{
return entries().size();
}
final class a
extends Maps.m<K, Collection<V>>
{
a() {}
private Collection<V> b(@Nullable Object paramObject)
{
Collection localCollection = (Collection)oe.this.a.asMap().get(paramObject);
if (localCollection == null) {
paramObject = null;
}
do
{
return (Collection<V>)paramObject;
localCollection = oe.a(localCollection, new oe.c(oe.this, paramObject));
paramObject = localCollection;
} while (!localCollection.isEmpty());
return null;
}
public final Collection<V> a(@Nullable Object paramObject)
{
Object localObject1 = (Collection)oe.this.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(oe.this, paramObject, localObject2))
{
((Iterator)localObject1).remove();
localArrayList.add(localObject2);
}
}
if (localArrayList.isEmpty()) {
return null;
}
if ((oe.this.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.this.a.asMap().entrySet().iterator();
};
}
public final boolean removeAll(Collection<?> paramAnonymousCollection)
{
return oe.this.a(Predicates.in(paramAnonymousCollection));
}
public final boolean retainAll(Collection<?> paramAnonymousCollection)
{
return oe.this.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.this.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.this, 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.this.a(Maps.b(Predicates.in(paramAnonymousCollection)));
}
public final boolean retainAll(Collection<?> paramAnonymousCollection)
{
return oe.this.a(Maps.b(Predicates.not(Predicates.in(paramAnonymousCollection))));
}
};
}
public final void clear()
{
oe.this.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.this.a(Maps.a(Predicates.in(paramAnonymousCollection)));
}
public final boolean retainAll(Collection<?> paramAnonymousCollection)
{
return oe.this.a(Maps.a(Predicates.not(Predicates.in(paramAnonymousCollection))));
}
};
}
}
final class b
extends Multimaps.g<K, V>
{
b()
{
super();
}
public final Set<Multiset.Entry<K>> entrySet()
{
new Multisets.c()
{
private boolean a(final Predicate<? super Multiset.Entry<K>> paramAnonymousPredicate)
{
oe.this.a(new Predicate() {});
}
final Multiset<K> a()
{
return oe.b.this;
}
public final Iterator<Multiset.Entry<K>> iterator()
{
return oe.b.this.a();
}
public final boolean removeAll(Collection<?> paramAnonymousCollection)
{
return a(Predicates.in(paramAnonymousCollection));
}
public final boolean retainAll(Collection<?> paramAnonymousCollection)
{
return a(Predicates.not(Predicates.in(paramAnonymousCollection)));
}
public final int size()
{
return oe.this.keySet().size();
}
};
}
public final int remove(@Nullable Object paramObject, int paramInt)
{
int i = 0;
nj.a(paramInt, "occurrences");
if (paramInt == 0) {
i = count(paramObject);
}
do
{
return i;
localObject1 = (Collection)oe.this.a.asMap().get(paramObject);
} while (localObject1 == null);
Object localObject1 = ((Collection)localObject1).iterator();
i = 0;
while (((Iterator)localObject1).hasNext())
{
Object localObject2 = ((Iterator)localObject1).next();
if (oe.a(oe.this, paramObject, localObject2))
{
int j = i + 1;
i = j;
if (j <= paramInt)
{
((Iterator)localObject1).remove();
i = j;
}
}
}
return i;
}
}
final class c
implements Predicate<V>
{
private final K b;
c()
{
Object localObject;
this.b = localObject;
}
public final boolean apply(@Nullable V paramV)
{
return oe.a(oe.this, this.b, paramV);
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/oe.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/