| java.lang.Object org.joda.time.DurationField org.joda.time.field.UnsupportedDurationField
UnsupportedDurationField | final public class UnsupportedDurationField extends DurationField implements Serializable(Code) | | A placeholder implementation to use when a duration field is not supported.
UnsupportedDurationField is thread-safe and immutable.
author: Brian S O'Neill since: 1.0 |
compareTo | public int compareTo(Object durationField)(Code) | | Always returns zero, indicating that sort order is not relevent.
zero always |
equals | public boolean equals(Object obj)(Code) | | Compares this duration field to another.
Parameters: obj - the object to compare to true if equal |
getDifferenceAsLong | public long getDifferenceAsLong(long minuendInstant, long subtrahendInstant)(Code) | | Always throws UnsupportedOperationException
throws: UnsupportedOperationException - |
getInstance | public static synchronized UnsupportedDurationField getInstance(DurationFieldType type)(Code) | | Gets an instance of UnsupportedDurationField for a specific named field.
The returned instance is cached.
Parameters: type - the type to obtain the instance |
getUnitMillis | public long getUnitMillis()(Code) | | Always returns zero.
zero always |
hashCode | public int hashCode()(Code) | | Gets a suitable hashcode.
the hashcode |
isPrecise | public boolean isPrecise()(Code) | | This field is precise.
true always |
isSupported | public boolean isSupported()(Code) | | This field is not supported.
false always |
toString | public String toString()(Code) | | Get a suitable debug string.
debug string |
Methods inherited from org.joda.time.DurationField | abstract public long add(long instant, int value)(Code)(Java Doc) abstract public long add(long instant, long value)(Code)(Java Doc) abstract public int compareTo(Object durationField)(Code)(Java Doc) abstract public int getDifference(long minuendInstant, long subtrahendInstant)(Code)(Java Doc) abstract public long getDifferenceAsLong(long minuendInstant, long subtrahendInstant)(Code)(Java Doc) abstract public long getMillis(int value)(Code)(Java Doc) abstract public long getMillis(long value)(Code)(Java Doc) abstract public long getMillis(int value, long instant)(Code)(Java Doc) abstract public long getMillis(long value, long instant)(Code)(Java Doc) abstract public String getName()(Code)(Java Doc) abstract public DurationFieldType getType()(Code)(Java Doc) abstract public long getUnitMillis()(Code)(Java Doc) abstract public int getValue(long duration)(Code)(Java Doc) abstract public int getValue(long duration, long instant)(Code)(Java Doc) abstract public long getValueAsLong(long duration)(Code)(Java Doc) abstract public long getValueAsLong(long duration, long instant)(Code)(Java Doc) abstract public boolean isPrecise()(Code)(Java Doc) abstract public boolean isSupported()(Code)(Java Doc) public long subtract(long instant, int value)(Code)(Java Doc) public long subtract(long instant, long value)(Code)(Java Doc) abstract public String toString()(Code)(Java Doc)
|
|
|