pp.java
8.09 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
import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSortedSet;
import com.google.common.collect.Iterators;
import com.google.common.collect.Multiset;
import com.google.common.collect.Ordering;
import com.google.common.collect.PeekingIterator;
import com.google.common.collect.SortedLists;
import com.google.common.collect.SortedLists.KeyAbsentBehavior;
import com.google.common.collect.SortedLists.KeyPresentBehavior;
import com.google.common.collect.UnmodifiableIterator;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Set;
import javax.annotation.Nullable;
@GwtCompatible(emulated=true, serializable=true)
public final class pp<E>
extends ImmutableSortedSet<E>
{
private final transient ImmutableList<E> a;
public pp(ImmutableList<E> paramImmutableList, Comparator<? super E> paramComparator)
{
super(paramComparator);
this.a = paramImmutableList;
if (!paramImmutableList.isEmpty()) {}
for (boolean bool = true;; bool = false)
{
Preconditions.checkArgument(bool);
return;
}
}
final int a(@Nullable Object paramObject)
{
if (paramObject == null) {}
for (;;)
{
return -1;
try
{
int i = SortedLists.a(this.a, paramObject, this.b, SortedLists.KeyPresentBehavior.ANY_PRESENT, SortedLists.KeyAbsentBehavior.INVERTED_INSERTION_INDEX);
if (i >= 0) {
return i;
}
}
catch (ClassCastException paramObject) {}
}
return -1;
}
final int a(Object[] paramArrayOfObject, int paramInt)
{
return this.a.a(paramArrayOfObject, paramInt);
}
final ImmutableSortedSet<E> a(int paramInt1, int paramInt2)
{
if ((paramInt1 == 0) && (paramInt2 == size())) {
return this;
}
if (paramInt1 < paramInt2) {
return new pp(this.a.subList(paramInt1, paramInt2), this.b);
}
return a(this.b);
}
final ImmutableSortedSet<E> a(E paramE, boolean paramBoolean)
{
return a(d(paramE, paramBoolean), size());
}
final ImmutableSortedSet<E> a(E paramE1, boolean paramBoolean1, E paramE2, boolean paramBoolean2)
{
return a(paramE1, paramBoolean1).b(paramE2, paramBoolean2);
}
final boolean a()
{
return this.a.a();
}
final ImmutableSortedSet<E> b()
{
return new pp(this.a.reverse(), Ordering.from(this.b).reverse());
}
final ImmutableSortedSet<E> b(E paramE, boolean paramBoolean)
{
return a(0, c(paramE, paramBoolean));
}
final int c(E paramE, boolean paramBoolean)
{
ImmutableList localImmutableList = this.a;
Object localObject = Preconditions.checkNotNull(paramE);
Comparator localComparator = comparator();
if (paramBoolean) {}
for (paramE = SortedLists.KeyPresentBehavior.FIRST_AFTER;; paramE = SortedLists.KeyPresentBehavior.FIRST_PRESENT) {
return SortedLists.a(localImmutableList, localObject, localComparator, paramE, SortedLists.KeyAbsentBehavior.NEXT_HIGHER);
}
}
final ImmutableList<E> c()
{
return new ox(this, this.a);
}
public final E ceiling(E paramE)
{
int i = d(paramE, true);
if (i == size()) {
return null;
}
return (E)this.a.get(i);
}
public final boolean contains(Object paramObject)
{
boolean bool2 = false;
boolean bool1 = bool2;
if (paramObject != null) {}
try
{
int i = Collections.binarySearch(this.a, paramObject, this.b);
bool1 = bool2;
if (i >= 0) {
bool1 = true;
}
return bool1;
}
catch (ClassCastException paramObject) {}
return false;
}
public final boolean containsAll(Collection<?> paramCollection)
{
boolean bool2 = true;
Object localObject = paramCollection;
if ((paramCollection instanceof Multiset)) {
localObject = ((Multiset)paramCollection).elementSet();
}
boolean bool1;
if ((!pz.a(comparator(), (Iterable)localObject)) || (((Collection)localObject).size() <= 1)) {
bool1 = super.containsAll((Collection)localObject);
}
for (;;)
{
return bool1;
PeekingIterator localPeekingIterator = Iterators.peekingIterator(iterator());
localObject = ((Collection)localObject).iterator();
paramCollection = ((Iterator)localObject).next();
try
{
for (;;)
{
if (localPeekingIterator.hasNext())
{
int i = a(localPeekingIterator.peek(), paramCollection);
if (i < 0)
{
localPeekingIterator.next();
}
else
{
if (i == 0)
{
bool1 = bool2;
if (!((Iterator)localObject).hasNext()) {
break;
}
paramCollection = ((Iterator)localObject).next();
continue;
}
if (i > 0) {
return false;
}
}
}
}
}
catch (ClassCastException paramCollection)
{
return false;
return false;
}
catch (NullPointerException paramCollection) {}
}
return false;
}
final int d(E paramE, boolean paramBoolean)
{
ImmutableList localImmutableList = this.a;
Object localObject = Preconditions.checkNotNull(paramE);
Comparator localComparator = comparator();
if (paramBoolean) {}
for (paramE = SortedLists.KeyPresentBehavior.FIRST_PRESENT;; paramE = SortedLists.KeyPresentBehavior.FIRST_AFTER) {
return SortedLists.a(localImmutableList, localObject, localComparator, paramE, SortedLists.KeyAbsentBehavior.NEXT_HIGHER);
}
}
@GwtIncompatible("NavigableSet")
public final UnmodifiableIterator<E> descendingIterator()
{
return this.a.reverse().iterator();
}
public final boolean equals(@Nullable Object paramObject)
{
if (paramObject == this) {}
for (;;)
{
return true;
if (!(paramObject instanceof Set)) {
return false;
}
paramObject = (Set)paramObject;
if (size() != ((Set)paramObject).size()) {
return false;
}
if (pz.a(this.b, (Iterable)paramObject))
{
paramObject = ((Set)paramObject).iterator();
try
{
UnmodifiableIterator localUnmodifiableIterator = iterator();
int i;
do
{
if (!localUnmodifiableIterator.hasNext()) {
break;
}
Object localObject1 = localUnmodifiableIterator.next();
Object localObject2 = ((Iterator)paramObject).next();
if (localObject2 == null) {
break label102;
}
i = a(localObject1, localObject2);
} while (i == 0);
label102:
return false;
}
catch (ClassCastException paramObject)
{
return false;
}
catch (NoSuchElementException paramObject)
{
return false;
}
}
}
return containsAll((Collection)paramObject);
}
public final E first()
{
return (E)this.a.get(0);
}
public final E floor(E paramE)
{
int i = c(paramE, true) - 1;
if (i == -1) {
return null;
}
return (E)this.a.get(i);
}
public final E higher(E paramE)
{
int i = d(paramE, false);
if (i == size()) {
return null;
}
return (E)this.a.get(i);
}
public final boolean isEmpty()
{
return false;
}
public final UnmodifiableIterator<E> iterator()
{
return this.a.iterator();
}
public final E last()
{
return (E)this.a.get(size() - 1);
}
public final E lower(E paramE)
{
int i = c(paramE, false) - 1;
if (i == -1) {
return null;
}
return (E)this.a.get(i);
}
public final int size()
{
return this.a.size();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/pp.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/