mx.java
6.14 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
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Preconditions;
import com.google.common.collect.Iterators;
import com.google.common.collect.Maps;
import com.google.common.collect.Maps.n;
import com.google.common.collect.Multimap;
import com.google.common.collect.Multimaps;
import com.google.common.collect.Multimaps.f;
import com.google.common.collect.Multimaps.g;
import com.google.common.collect.Multiset;
import com.google.common.collect.SetMultimap;
import com.google.common.collect.Sets;
import java.util.AbstractCollection;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import javax.annotation.Nullable;
@GwtCompatible
public abstract class mx<K, V>
implements Multimap<K, V>
{
private transient Collection<Map.Entry<K, V>> a;
private transient Set<K> b;
private transient Multiset<K> c;
private transient Collection<V> d;
private transient Map<K, Collection<V>> e;
public Map<K, Collection<V>> asMap()
{
Map localMap2 = this.e;
Map localMap1 = localMap2;
if (localMap2 == null)
{
localMap1 = h();
this.e = localMap1;
}
return localMap1;
}
public boolean containsEntry(@Nullable Object paramObject1, @Nullable Object paramObject2)
{
paramObject1 = (Collection)asMap().get(paramObject1);
return (paramObject1 != null) && (((Collection)paramObject1).contains(paramObject2));
}
public boolean containsValue(@Nullable Object paramObject)
{
Iterator localIterator = asMap().values().iterator();
while (localIterator.hasNext()) {
if (((Collection)localIterator.next()).contains(paramObject)) {
return true;
}
}
return false;
}
protected Set<K> e()
{
return new Maps.n(asMap());
}
public Collection<Map.Entry<K, V>> entries()
{
Collection localCollection2 = this.a;
Collection localCollection1 = localCollection2;
if (localCollection2 == null)
{
localCollection1 = i();
this.a = localCollection1;
}
return localCollection1;
}
public boolean equals(@Nullable Object paramObject)
{
return Multimaps.a(this, paramObject);
}
public Iterator<V> f()
{
return Maps.b(entries().iterator());
}
public abstract Iterator<Map.Entry<K, V>> g();
public abstract Map<K, Collection<V>> h();
public int hashCode()
{
return asMap().hashCode();
}
protected Collection<Map.Entry<K, V>> i()
{
if ((this instanceof SetMultimap)) {
return new mx.b((byte)0);
}
return new mx.a((byte)0);
}
public boolean isEmpty()
{
return size() == 0;
}
protected Multiset<K> j()
{
return new Multimaps.g(this);
}
public Collection<V> k()
{
return new mx.c();
}
public Set<K> keySet()
{
Set localSet2 = this.b;
Set localSet1 = localSet2;
if (localSet2 == null)
{
localSet1 = e();
this.b = localSet1;
}
return localSet1;
}
public Multiset<K> keys()
{
Multiset localMultiset2 = this.c;
Multiset localMultiset1 = localMultiset2;
if (localMultiset2 == null)
{
localMultiset1 = j();
this.c = localMultiset1;
}
return localMultiset1;
}
public boolean put(@Nullable K paramK, @Nullable V paramV)
{
return get(paramK).add(paramV);
}
public boolean putAll(Multimap<? extends K, ? extends V> paramMultimap)
{
paramMultimap = paramMultimap.entries().iterator();
Map.Entry localEntry;
for (boolean bool = false; paramMultimap.hasNext(); bool = put(localEntry.getKey(), localEntry.getValue()) | bool) {
localEntry = (Map.Entry)paramMultimap.next();
}
return bool;
}
public boolean putAll(@Nullable K paramK, Iterable<? extends V> paramIterable)
{
Preconditions.checkNotNull(paramIterable);
if ((paramIterable instanceof Collection))
{
paramIterable = (Collection)paramIterable;
if ((paramIterable.isEmpty()) || (!get(paramK).addAll(paramIterable))) {}
}
do
{
return true;
return false;
paramIterable = paramIterable.iterator();
} while ((paramIterable.hasNext()) && (Iterators.addAll(get(paramK), paramIterable)));
return false;
}
public boolean remove(@Nullable Object paramObject1, @Nullable Object paramObject2)
{
paramObject1 = (Collection)asMap().get(paramObject1);
return (paramObject1 != null) && (((Collection)paramObject1).remove(paramObject2));
}
public Collection<V> replaceValues(@Nullable K paramK, Iterable<? extends V> paramIterable)
{
Preconditions.checkNotNull(paramIterable);
Collection localCollection = removeAll(paramK);
putAll(paramK, paramIterable);
return localCollection;
}
public String toString()
{
return asMap().toString();
}
public Collection<V> values()
{
Collection localCollection2 = this.d;
Collection localCollection1 = localCollection2;
if (localCollection2 == null)
{
localCollection1 = k();
this.d = localCollection1;
}
return localCollection1;
}
class a
extends Multimaps.f<K, V>
{
private a() {}
final Multimap<K, V> a()
{
return mx.this;
}
public Iterator<Map.Entry<K, V>> iterator()
{
return mx.this.g();
}
}
final class b
extends mx<K, V>.a
implements Set<Map.Entry<K, V>>
{
private b()
{
super((byte)0);
}
public final boolean equals(@Nullable Object paramObject)
{
return Sets.a(this, paramObject);
}
public final int hashCode()
{
return Sets.a(this);
}
}
final class c
extends AbstractCollection<V>
{
c() {}
public final void clear()
{
mx.this.clear();
}
public final boolean contains(@Nullable Object paramObject)
{
return mx.this.containsValue(paramObject);
}
public final Iterator<V> iterator()
{
return mx.this.f();
}
public final int size()
{
return mx.this.size();
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/mx.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/