| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.joda.time.DurationFieldorg.joda.time.field.DelegatedDurationFieldDelegatedDurationField delegates each method call to the
duration field it wraps.
DelegatedDurationField is thread-safe and immutable, and its subclasses must
be as well.
DecoratedDurationFieldConstructor Summary | |
| |
| |
Method Summary | |
long |
|
long |
|
int |
|
int |
|
long |
|
long |
|
long |
|
long |
|
long |
|
String |
|
DurationFieldType |
|
long | |
int |
|
int |
|
long |
|
long |
|
DurationField |
|
boolean | |
boolean |
|
String |
|
Methods inherited from class org.joda.time.DurationField | |
add, add, compareTo, getDifference, getDifferenceAsLong, getMillis, getMillis, getMillis, getMillis, getName, getType, getUnitMillis, getValue, getValue, getValueAsLong, getValueAsLong, isPrecise, isSupported, subtract, subtract, toString | |
protected DelegatedDurationField(DurationField field)
Constructor.
- Parameters:
field- the base field
protected DelegatedDurationField(DurationField field, DurationFieldType type)
Constructor.
- Parameters:
field- the base fieldtype- the field type to use
public int getDifference(long minuendInstant,
long subtrahendInstant)
- Overrides:
- getDifference in interface DurationField
public long getDifferenceAsLong(long minuendInstant,
long subtrahendInstant)
- Overrides:
- getDifferenceAsLong in interface DurationField
public long getMillis(int value,
long instant)
- Overrides:
- getMillis in interface DurationField
public long getMillis(long value,
long instant)
- Overrides:
- getMillis in interface DurationField
public int getValue(long duration,
long instant)
- Overrides:
- getValue in interface DurationField
public long getValueAsLong(long duration)
- Overrides:
- getValueAsLong in interface DurationField
public long getValueAsLong(long duration,
long instant)
- Overrides:
- getValueAsLong in interface DurationField
public final DurationField getWrappedField()
Gets the wrapped duration field.
- Returns:
- the wrapped DurationField
public boolean isSupported()
Returns true if this field is supported.
- Overrides:
- isSupported in interface DurationField