lg.java
2.24 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
public final class lg
extends Number
implements Comparable<lg>
{
public boolean a;
private double b;
private long c;
private lg(double paramDouble)
{
this.b = paramDouble;
this.a = false;
}
private lg(long paramLong)
{
this.c = paramLong;
this.a = true;
}
public static lg a(long paramLong)
{
return new lg(paramLong);
}
public static lg a(Double paramDouble)
{
return new lg(paramDouble.doubleValue());
}
public static lg a(String paramString)
throws NumberFormatException
{
try
{
lg locallg1 = new lg(Long.parseLong(paramString));
return locallg1;
}
catch (NumberFormatException localNumberFormatException1)
{
try
{
lg locallg2 = new lg(Double.parseDouble(paramString));
return locallg2;
}
catch (NumberFormatException localNumberFormatException2)
{
throw new NumberFormatException(String.valueOf(paramString).concat(" is not a valid TypedNumber"));
}
}
}
public final int a(lg paramlg)
{
if ((this.a) && (paramlg.a)) {
return new Long(this.c).compareTo(Long.valueOf(paramlg.c));
}
return Double.compare(doubleValue(), paramlg.doubleValue());
}
public final byte byteValue()
{
return (byte)(int)longValue();
}
public final double doubleValue()
{
if (this.a) {
return this.c;
}
return this.b;
}
public final boolean equals(Object paramObject)
{
return ((paramObject instanceof lg)) && (a((lg)paramObject) == 0);
}
public final float floatValue()
{
return (float)doubleValue();
}
public final int hashCode()
{
return new Long(longValue()).hashCode();
}
public final int intValue()
{
return (int)longValue();
}
public final long longValue()
{
if (this.a) {
return this.c;
}
return this.b;
}
public final short shortValue()
{
return (short)(int)longValue();
}
public final String toString()
{
if (this.a) {
return Long.toString(this.c);
}
return Double.toString(this.b);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/lg.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/