| 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.UnsupportedDurationFieldMethod Summary | |
long |
|
long |
|
int |
|
boolean |
|
int |
|
long |
|
static UnsupportedDurationField |
|
long |
|
long |
|
long |
|
long |
|
String |
|
DurationFieldType |
|
long |
|
int |
|
int |
|
long |
|
long |
|
int |
|
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 long add(long instant,
int value)Always throws UnsupportedOperationException
- Overrides:
- add in interface DurationField
public long add(long instant,
long value)Always throws UnsupportedOperationException
- Overrides:
- add in interface DurationField
public int compareTo(Object durationField)
Always returns zero, indicating that sort order is not relevent.
- Overrides:
- compareTo in interface DurationField
- Returns:
- zero always
public boolean equals(Object obj)
Compares this duration field to another.
- Parameters:
obj- the object to compare to
- Returns:
- true if equal
public int getDifference(long minuendInstant,
long subtrahendInstant)Always throws UnsupportedOperationException
- Overrides:
- getDifference in interface DurationField
public long getDifferenceAsLong(long minuendInstant,
long subtrahendInstant)Always throws UnsupportedOperationException
- Overrides:
- getDifferenceAsLong in interface DurationField
public static UnsupportedDurationField getInstance(DurationFieldType type)
Gets an instance of UnsupportedDurationField for a specific named field. The returned instance is cached.
- Parameters:
type- the type to obtain
- Returns:
- the instance
public long getMillis(int value)
Always throws UnsupportedOperationException
- Overrides:
- getMillis in interface DurationField
public long getMillis(int value,
long instant)Always throws UnsupportedOperationException
- Overrides:
- getMillis in interface DurationField
public long getMillis(long value)
Always throws UnsupportedOperationException
- Overrides:
- getMillis in interface DurationField
public long getMillis(long value,
long instant)Always throws UnsupportedOperationException
- Overrides:
- getMillis in interface DurationField
public long getUnitMillis()
Always returns zero.
- Overrides:
- getUnitMillis in interface DurationField
- Returns:
- zero always
public int getValue(long duration)
Always throws UnsupportedOperationException
- Overrides:
- getValue in interface DurationField
public int getValue(long duration,
long instant)Always throws UnsupportedOperationException
- Overrides:
- getValue in interface DurationField
public long getValueAsLong(long duration)
Always throws UnsupportedOperationException
- Overrides:
- getValueAsLong in interface DurationField
public long getValueAsLong(long duration,
long instant)Always throws UnsupportedOperationException
- Overrides:
- getValueAsLong in interface DurationField
public int hashCode()
Gets a suitable hashcode.
- Returns:
- the hashcode
public boolean isPrecise()
This field is precise.
- Overrides:
- isPrecise in interface DurationField
- Returns:
- true always
public boolean isSupported()
This field is not supported.
- Overrides:
- isSupported in interface DurationField
- Returns:
- false always
public String toString()
Get a suitable debug string.
- Overrides:
- toString in interface DurationField
- Returns:
- debug string