nk.java
1.2 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
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Preconditions;
import com.google.common.collect.Ordering;
import java.io.Serializable;
import java.util.Comparator;
import javax.annotation.Nullable;
@GwtCompatible(serializable=true)
public final class nk<T>
extends Ordering<T>
implements Serializable
{
private static final long serialVersionUID = 0L;
final Comparator<T> a;
public nk(Comparator<T> paramComparator)
{
this.a = ((Comparator)Preconditions.checkNotNull(paramComparator));
}
public final int compare(T paramT1, T paramT2)
{
return this.a.compare(paramT1, paramT2);
}
public final boolean equals(@Nullable Object paramObject)
{
if (paramObject == this) {
return true;
}
if ((paramObject instanceof nk))
{
paramObject = (nk)paramObject;
return this.a.equals(((nk)paramObject).a);
}
return false;
}
public final int hashCode()
{
return this.a.hashCode();
}
public final String toString()
{
return this.a.toString();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/nk.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/