pv.java
2.43 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
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterators;
import com.google.common.collect.UnmodifiableIterator;
import java.util.List;
import javax.annotation.Nullable;
@GwtCompatible(emulated=true, serializable=true)
public final class pv<E>
extends ImmutableList<E>
{
final transient E a;
public pv(E paramE)
{
this.a = Preconditions.checkNotNull(paramE);
}
final int a(Object[] paramArrayOfObject, int paramInt)
{
paramArrayOfObject[paramInt] = this.a;
return paramInt + 1;
}
final boolean a()
{
return false;
}
public final boolean contains(@Nullable Object paramObject)
{
return this.a.equals(paramObject);
}
public final boolean equals(@Nullable Object paramObject)
{
if (paramObject == this) {}
do
{
return true;
if (!(paramObject instanceof List)) {
break;
}
paramObject = (List)paramObject;
} while ((((List)paramObject).size() == 1) && (this.a.equals(((List)paramObject).get(0))));
return false;
return false;
}
public final E get(int paramInt)
{
Preconditions.checkElementIndex(paramInt, 1);
return (E)this.a;
}
public final int hashCode()
{
return this.a.hashCode() + 31;
}
public final int indexOf(@Nullable Object paramObject)
{
if (this.a.equals(paramObject)) {
return 0;
}
return -1;
}
public final boolean isEmpty()
{
return false;
}
public final UnmodifiableIterator<E> iterator()
{
return Iterators.singletonIterator(this.a);
}
public final int lastIndexOf(@Nullable Object paramObject)
{
return indexOf(paramObject);
}
public final ImmutableList<E> reverse()
{
return this;
}
public final int size()
{
return 1;
}
public final ImmutableList<E> subList(int paramInt1, int paramInt2)
{
Preconditions.checkPositionIndexes(paramInt1, paramInt2, 1);
Object localObject = this;
if (paramInt1 == paramInt2) {
localObject = ImmutableList.of();
}
return (ImmutableList<E>)localObject;
}
public final String toString()
{
String str = this.a.toString();
return str.length() + 2 + '[' + str + ']';
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/pv.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/