OffsetDateTimeField.java
3.38 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
121
122
123
124
125
126
127
128
129
130
131
132
package org.joda.time.field;
import org.joda.time.DateTimeField;
import org.joda.time.DateTimeFieldType;
import org.joda.time.DurationField;
public class OffsetDateTimeField
extends DecoratedDateTimeField
{
private final int a;
private final int b;
private final int c;
public OffsetDateTimeField(DateTimeField paramDateTimeField, int paramInt) {}
public OffsetDateTimeField(DateTimeField paramDateTimeField, DateTimeFieldType paramDateTimeFieldType, int paramInt)
{
this(paramDateTimeField, paramDateTimeFieldType, paramInt, Integer.MIN_VALUE, Integer.MAX_VALUE);
}
public OffsetDateTimeField(DateTimeField paramDateTimeField, DateTimeFieldType paramDateTimeFieldType, int paramInt1, int paramInt2, int paramInt3)
{
super(paramDateTimeField, paramDateTimeFieldType);
if (paramInt1 == 0) {
throw new IllegalArgumentException("The offset cannot be zero");
}
this.a = paramInt1;
if (paramInt2 < paramDateTimeField.getMinimumValue() + paramInt1) {}
for (this.b = (paramDateTimeField.getMinimumValue() + paramInt1); paramInt3 > paramDateTimeField.getMaximumValue() + paramInt1; this.b = paramInt2)
{
this.c = (paramDateTimeField.getMaximumValue() + paramInt1);
return;
}
this.c = paramInt3;
}
public long add(long paramLong, int paramInt)
{
paramLong = super.add(paramLong, paramInt);
FieldUtils.verifyValueBounds(this, get(paramLong), this.b, this.c);
return paramLong;
}
public long add(long paramLong1, long paramLong2)
{
paramLong1 = super.add(paramLong1, paramLong2);
FieldUtils.verifyValueBounds(this, get(paramLong1), this.b, this.c);
return paramLong1;
}
public long addWrapField(long paramLong, int paramInt)
{
return set(paramLong, FieldUtils.getWrappedValue(get(paramLong), paramInt, this.b, this.c));
}
public int get(long paramLong)
{
return super.get(paramLong) + this.a;
}
public int getLeapAmount(long paramLong)
{
return getWrappedField().getLeapAmount(paramLong);
}
public DurationField getLeapDurationField()
{
return getWrappedField().getLeapDurationField();
}
public int getMaximumValue()
{
return this.c;
}
public int getMinimumValue()
{
return this.b;
}
public int getOffset()
{
return this.a;
}
public boolean isLeap(long paramLong)
{
return getWrappedField().isLeap(paramLong);
}
public long remainder(long paramLong)
{
return getWrappedField().remainder(paramLong);
}
public long roundCeiling(long paramLong)
{
return getWrappedField().roundCeiling(paramLong);
}
public long roundFloor(long paramLong)
{
return getWrappedField().roundFloor(paramLong);
}
public long roundHalfCeiling(long paramLong)
{
return getWrappedField().roundHalfCeiling(paramLong);
}
public long roundHalfEven(long paramLong)
{
return getWrappedField().roundHalfEven(paramLong);
}
public long roundHalfFloor(long paramLong)
{
return getWrappedField().roundHalfFloor(paramLong);
}
public long set(long paramLong, int paramInt)
{
FieldUtils.verifyValueBounds(this, paramInt, this.b, this.c);
return super.set(paramLong, paramInt - this.a);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/org/joda/time/field/OffsetDateTimeField.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/