pe.java
1.63 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
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.Ordering;
import java.io.Serializable;
import javax.annotation.Nullable;
@GwtCompatible(serializable=true)
public final class pe<T>
extends Ordering<T>
implements Serializable
{
private static final long serialVersionUID = 0L;
final Ordering<? super T> a;
public pe(Ordering<? super T> paramOrdering)
{
this.a = paramOrdering;
}
public final int compare(@Nullable T paramT1, @Nullable T paramT2)
{
if (paramT1 == paramT2) {
return 0;
}
if (paramT1 == null) {
return -1;
}
if (paramT2 == null) {
return 1;
}
return this.a.compare(paramT1, paramT2);
}
public final boolean equals(@Nullable Object paramObject)
{
if (paramObject == this) {
return true;
}
if ((paramObject instanceof pe))
{
paramObject = (pe)paramObject;
return this.a.equals(((pe)paramObject).a);
}
return false;
}
public final int hashCode()
{
return this.a.hashCode() ^ 0x39153A74;
}
public final <S extends T> Ordering<S> nullsFirst()
{
return this;
}
public final <S extends T> Ordering<S> nullsLast()
{
return this.a.nullsLast();
}
public final <S extends T> Ordering<S> reverse()
{
return this.a.reverse().nullsLast();
}
public final String toString()
{
String str = String.valueOf(String.valueOf(this.a));
return str.length() + 13 + str + ".nullsFirst()";
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/pe.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/