Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.joda.time.DurationField
org.joda.time.field.MillisDurationField
Field Summary | |
static DurationField |
|
Method Summary | |
long |
|
long |
|
int |
|
int |
|
long |
|
long |
|
long |
|
long |
|
long |
|
String |
|
DurationFieldType |
|
long |
|
int |
|
int |
|
long |
|
long |
|
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 |
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 final long getUnitMillis()
Returns the amount of milliseconds per unit value of this field.
- Overrides:
- getUnitMillis in interface DurationField
- Returns:
- one always
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 boolean isPrecise()
Returns true as this field is precise.
- Overrides:
- isPrecise in interface DurationField
- Returns:
- true always
public boolean isSupported()
Returns true as this field is supported.
- Overrides:
- isSupported in interface DurationField
- Returns:
- true always
public String toString()
Get a suitable debug string.
- Overrides:
- toString in interface DurationField
- Returns:
- debug string