DelegatedDurationField.java
3.41 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
package org.joda.time.field;
import java.io.Serializable;
import org.joda.time.DurationField;
import org.joda.time.DurationFieldType;
public class DelegatedDurationField
extends DurationField
implements Serializable
{
private static final long serialVersionUID = -5576443481242007829L;
private final DurationField a;
private final DurationFieldType b;
protected DelegatedDurationField(DurationField paramDurationField)
{
this(paramDurationField, null);
}
protected DelegatedDurationField(DurationField paramDurationField, DurationFieldType paramDurationFieldType)
{
if (paramDurationField == null) {
throw new IllegalArgumentException("The field must not be null");
}
this.a = paramDurationField;
DurationFieldType localDurationFieldType = paramDurationFieldType;
if (paramDurationFieldType == null) {
localDurationFieldType = paramDurationField.getType();
}
this.b = localDurationFieldType;
}
public long add(long paramLong, int paramInt)
{
return this.a.add(paramLong, paramInt);
}
public long add(long paramLong1, long paramLong2)
{
return this.a.add(paramLong1, paramLong2);
}
public int compareTo(DurationField paramDurationField)
{
return this.a.compareTo(paramDurationField);
}
public boolean equals(Object paramObject)
{
if ((paramObject instanceof DelegatedDurationField)) {
return this.a.equals(((DelegatedDurationField)paramObject).a);
}
return false;
}
public int getDifference(long paramLong1, long paramLong2)
{
return this.a.getDifference(paramLong1, paramLong2);
}
public long getDifferenceAsLong(long paramLong1, long paramLong2)
{
return this.a.getDifferenceAsLong(paramLong1, paramLong2);
}
public long getMillis(int paramInt)
{
return this.a.getMillis(paramInt);
}
public long getMillis(int paramInt, long paramLong)
{
return this.a.getMillis(paramInt, paramLong);
}
public long getMillis(long paramLong)
{
return this.a.getMillis(paramLong);
}
public long getMillis(long paramLong1, long paramLong2)
{
return this.a.getMillis(paramLong1, paramLong2);
}
public String getName()
{
return this.b.getName();
}
public DurationFieldType getType()
{
return this.b;
}
public long getUnitMillis()
{
return this.a.getUnitMillis();
}
public int getValue(long paramLong)
{
return this.a.getValue(paramLong);
}
public int getValue(long paramLong1, long paramLong2)
{
return this.a.getValue(paramLong1, paramLong2);
}
public long getValueAsLong(long paramLong)
{
return this.a.getValueAsLong(paramLong);
}
public long getValueAsLong(long paramLong1, long paramLong2)
{
return this.a.getValueAsLong(paramLong1, paramLong2);
}
public final DurationField getWrappedField()
{
return this.a;
}
public int hashCode()
{
return this.a.hashCode() ^ this.b.hashCode();
}
public boolean isPrecise()
{
return this.a.isPrecise();
}
public boolean isSupported()
{
return this.a.isSupported();
}
public String toString()
{
if (this.b == null) {
return this.a.toString();
}
return "DurationField[" + this.b + ']';
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/org/joda/time/field/DelegatedDurationField.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/