nf.java
5.38 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
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.Collections2;
import com.google.common.collect.Iterators;
import com.google.common.collect.Maps;
import com.google.common.collect.Table;
import com.google.common.collect.Table.Cell;
import com.google.common.collect.Tables;
import java.util.AbstractCollection;
import java.util.AbstractSet;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import javax.annotation.Nullable;
@GwtCompatible
public abstract class nf<R, C, V>
implements Table<R, C, V>
{
private transient Set<Table.Cell<R, C, V>> a;
private transient Collection<V> b;
public Set<Table.Cell<R, C, V>> a()
{
return new nf.a();
}
public abstract Iterator<Table.Cell<R, C, V>> b();
public Collection<V> c()
{
return new nf.b();
}
public Set<Table.Cell<R, C, V>> cellSet()
{
Set localSet2 = this.a;
Set localSet1 = localSet2;
if (localSet2 == null)
{
localSet1 = a();
this.a = localSet1;
}
return localSet1;
}
public void clear()
{
Iterators.b(cellSet().iterator());
}
public Set<C> columnKeySet()
{
return columnMap().keySet();
}
public boolean contains(@Nullable Object paramObject1, @Nullable Object paramObject2)
{
paramObject1 = (Map)Maps.a(rowMap(), paramObject1);
return (paramObject1 != null) && (Maps.b((Map)paramObject1, paramObject2));
}
public boolean containsColumn(@Nullable Object paramObject)
{
return Maps.b(columnMap(), paramObject);
}
public boolean containsRow(@Nullable Object paramObject)
{
return Maps.b(rowMap(), paramObject);
}
public boolean containsValue(@Nullable Object paramObject)
{
Iterator localIterator = rowMap().values().iterator();
while (localIterator.hasNext()) {
if (((Map)localIterator.next()).containsValue(paramObject)) {
return true;
}
}
return false;
}
public Iterator<V> d()
{
new qg(cellSet().iterator()) {};
}
public boolean equals(@Nullable Object paramObject)
{
return Tables.a(this, paramObject);
}
public V get(@Nullable Object paramObject1, @Nullable Object paramObject2)
{
paramObject1 = (Map)Maps.a(rowMap(), paramObject1);
if (paramObject1 == null) {
return null;
}
return (V)Maps.a((Map)paramObject1, paramObject2);
}
public int hashCode()
{
return cellSet().hashCode();
}
public boolean isEmpty()
{
return size() == 0;
}
public V put(R paramR, C paramC, V paramV)
{
return (V)row(paramR).put(paramC, paramV);
}
public void putAll(Table<? extends R, ? extends C, ? extends V> paramTable)
{
paramTable = paramTable.cellSet().iterator();
while (paramTable.hasNext())
{
Table.Cell localCell = (Table.Cell)paramTable.next();
put(localCell.getRowKey(), localCell.getColumnKey(), localCell.getValue());
}
}
public V remove(@Nullable Object paramObject1, @Nullable Object paramObject2)
{
paramObject1 = (Map)Maps.a(rowMap(), paramObject1);
if (paramObject1 == null) {
return null;
}
return (V)Maps.c((Map)paramObject1, paramObject2);
}
public Set<R> rowKeySet()
{
return rowMap().keySet();
}
public String toString()
{
return rowMap().toString();
}
public Collection<V> values()
{
Collection localCollection2 = this.b;
Collection localCollection1 = localCollection2;
if (localCollection2 == null)
{
localCollection1 = c();
this.b = localCollection1;
}
return localCollection1;
}
final class a
extends AbstractSet<Table.Cell<R, C, V>>
{
a() {}
public final void clear()
{
nf.this.clear();
}
public final boolean contains(Object paramObject)
{
if ((paramObject instanceof Table.Cell))
{
paramObject = (Table.Cell)paramObject;
Map localMap = (Map)Maps.a(nf.this.rowMap(), ((Table.Cell)paramObject).getRowKey());
return (localMap != null) && (Collections2.a(localMap.entrySet(), Maps.immutableEntry(((Table.Cell)paramObject).getColumnKey(), ((Table.Cell)paramObject).getValue())));
}
return false;
}
public final Iterator<Table.Cell<R, C, V>> iterator()
{
return nf.this.b();
}
public final boolean remove(@Nullable Object paramObject)
{
if ((paramObject instanceof Table.Cell))
{
paramObject = (Table.Cell)paramObject;
Map localMap = (Map)Maps.a(nf.this.rowMap(), ((Table.Cell)paramObject).getRowKey());
return (localMap != null) && (Collections2.b(localMap.entrySet(), Maps.immutableEntry(((Table.Cell)paramObject).getColumnKey(), ((Table.Cell)paramObject).getValue())));
}
return false;
}
public final int size()
{
return nf.this.size();
}
}
final class b
extends AbstractCollection<V>
{
b() {}
public final void clear()
{
nf.this.clear();
}
public final boolean contains(Object paramObject)
{
return nf.this.containsValue(paramObject);
}
public final Iterator<V> iterator()
{
return nf.this.d();
}
public final int size()
{
return nf.this.size();
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/nf.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/