FixedDateTimeZone.java
2.06 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
package org.joda.time.tz;
import java.util.SimpleTimeZone;
import java.util.TimeZone;
import org.joda.time.DateTimeZone;
public final class FixedDateTimeZone
extends DateTimeZone
{
private static final long serialVersionUID = -3513011772763289092L;
private final String a;
private final int b;
private final int c;
public FixedDateTimeZone(String paramString1, String paramString2, int paramInt1, int paramInt2)
{
super(paramString1);
this.a = paramString2;
this.b = paramInt1;
this.c = paramInt2;
}
public final boolean equals(Object paramObject)
{
if (this == paramObject) {}
do
{
return true;
if (!(paramObject instanceof FixedDateTimeZone)) {
break;
}
paramObject = (FixedDateTimeZone)paramObject;
} while ((getID().equals(((FixedDateTimeZone)paramObject).getID())) && (this.c == ((FixedDateTimeZone)paramObject).c) && (this.b == ((FixedDateTimeZone)paramObject).b));
return false;
return false;
}
public final String getNameKey(long paramLong)
{
return this.a;
}
public final int getOffset(long paramLong)
{
return this.b;
}
public final int getOffsetFromLocal(long paramLong)
{
return this.b;
}
public final int getStandardOffset(long paramLong)
{
return this.c;
}
public final int hashCode()
{
return getID().hashCode() + this.c * 37 + this.b * 31;
}
public final boolean isFixed()
{
return true;
}
public final long nextTransition(long paramLong)
{
return paramLong;
}
public final long previousTransition(long paramLong)
{
return paramLong;
}
public final TimeZone toTimeZone()
{
String str = getID();
if ((str.length() == 6) && ((str.startsWith("+")) || (str.startsWith("-")))) {
return TimeZone.getTimeZone("GMT" + getID());
}
return new SimpleTimeZone(this.b, getID());
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/org/joda/time/tz/FixedDateTimeZone.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/