AbstractIterator.java
1.51 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
package com.google.common.collect;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Preconditions;
import java.util.NoSuchElementException;
@GwtCompatible
public abstract class AbstractIterator<T>
extends UnmodifiableIterator<T>
{
private int a = a.b;
private T b;
public abstract T computeNext();
protected final T endOfData()
{
this.a = a.c;
return null;
}
public final boolean hasNext()
{
boolean bool2 = false;
if (this.a != a.d) {}
for (boolean bool1 = true;; bool1 = false)
{
Preconditions.checkState(bool1);
bool1 = bool2;
switch (1.a[(this.a - 1)])
{
default:
this.a = a.d;
this.b = computeNext();
bool1 = bool2;
if (this.a != a.c)
{
this.a = a.a;
bool1 = true;
}
case 1:
return bool1;
}
}
return true;
}
public final T next()
{
if (!hasNext()) {
throw new NoSuchElementException();
}
this.a = a.b;
Object localObject = this.b;
this.b = null;
return (T)localObject;
}
public final T peek()
{
if (!hasNext()) {
throw new NoSuchElementException();
}
return (T)this.b;
}
static enum a
{
public static int[] a()
{
return (int[])e.clone();
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/common/collect/AbstractIterator.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/