| java.lang.Object org.joda.time.DateTimeField org.joda.time.field.UnsupportedDateTimeField
UnsupportedDateTimeField | final public class UnsupportedDateTimeField extends DateTimeField implements Serializable(Code) | | A placeholder implementation to use when a datetime field is not supported.
UnsupportedDateTimeField is thread-safe and immutable.
author: Brian S O'Neill since: 1.0 |
Method Summary | |
public long | add(long instant, int value) Delegates to the duration field. | public long | add(long instant, long value) Delegates to the duration field. | public int[] | add(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd) | public long | addWrapField(long instant, int value) | public int[] | addWrapField(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd) | public int[] | addWrapPartial(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd) | public int | get(long instant) | public String | getAsShortText(long instant, Locale locale) | public String | getAsShortText(long instant) | public String | getAsShortText(ReadablePartial partial, int fieldValue, Locale locale) | public String | getAsShortText(ReadablePartial partial, Locale locale) | public String | getAsShortText(int fieldValue, Locale locale) | public String | getAsText(long instant, Locale locale) | public String | getAsText(long instant) | public String | getAsText(ReadablePartial partial, int fieldValue, Locale locale) | public String | getAsText(ReadablePartial partial, Locale locale) | public String | getAsText(int fieldValue, Locale locale) | public int | getDifference(long minuendInstant, long subtrahendInstant) Delegates to the duration field. | public long | getDifferenceAsLong(long minuendInstant, long subtrahendInstant) Delegates to the duration field. | public DurationField | getDurationField() Even though this DateTimeField is unsupported, the duration field might
be supported. | public static synchronized UnsupportedDateTimeField | getInstance(DateTimeFieldType type, DurationField durationField) Gets an instance of UnsupportedDateTimeField for a specific named field. | public int | getLeapAmount(long instant) | public DurationField | getLeapDurationField() Always returns null. | public int | getMaximumShortTextLength(Locale locale) | public int | getMaximumTextLength(Locale locale) | public int | getMaximumValue() | public int | getMaximumValue(long instant) | public int | getMaximumValue(ReadablePartial instant) | public int | getMaximumValue(ReadablePartial instant, int[] values) | public int | getMinimumValue() | public int | getMinimumValue(long instant) | public int | getMinimumValue(ReadablePartial instant) | public int | getMinimumValue(ReadablePartial instant, int[] values) | public String | getName() | public DurationField | getRangeDurationField() Always returns null. | public DateTimeFieldType | getType() | public boolean | isLeap(long instant) | public boolean | isLenient() This field is not lenient. | public boolean | isSupported() This field is not supported. | public long | remainder(long instant) | public long | roundCeiling(long instant) | public long | roundFloor(long instant) | public long | roundHalfCeiling(long instant) | public long | roundHalfEven(long instant) | public long | roundHalfFloor(long instant) | public long | set(long instant, int value) | public int[] | set(ReadablePartial instant, int fieldIndex, int[] values, int newValue) | public long | set(long instant, String text, Locale locale) | public long | set(long instant, String text) | public int[] | set(ReadablePartial instant, int fieldIndex, int[] values, String text, Locale locale) | public String | toString() Get a suitable debug string. |
getDifference | public int getDifference(long minuendInstant, long subtrahendInstant)(Code) | | Delegates to the duration field.
throws: UnsupportedOperationException - if the duration is unsupported |
getDifferenceAsLong | public long getDifferenceAsLong(long minuendInstant, long subtrahendInstant)(Code) | | Delegates to the duration field.
throws: UnsupportedOperationException - if the duration is unsupported |
getDurationField | public DurationField getDurationField()(Code) | | Even though this DateTimeField is unsupported, the duration field might
be supported.
a possibly supported DurationField |
getInstance | public static synchronized UnsupportedDateTimeField getInstance(DateTimeFieldType type, DurationField durationField)(Code) | | Gets an instance of UnsupportedDateTimeField for a specific named field.
Names should be of standard format, such as 'monthOfYear' or 'hourOfDay'.
The returned instance is cached.
Parameters: type - the type to obtain the instance throws: IllegalArgumentException - if durationField is null |
getLeapDurationField | public DurationField getLeapDurationField()(Code) | | Always returns null.
null always |
getRangeDurationField | public DurationField getRangeDurationField()(Code) | | Always returns null.
null always |
isLenient | public boolean isLenient()(Code) | | This field is not lenient.
false 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.DateTimeField | 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[] add(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd)(Code)(Java Doc) abstract public long addWrapField(long instant, int value)(Code)(Java Doc) abstract public int[] addWrapField(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd)(Code)(Java Doc) abstract public int[] addWrapPartial(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd)(Code)(Java Doc) abstract public int get(long instant)(Code)(Java Doc) abstract public String getAsShortText(long instant, Locale locale)(Code)(Java Doc) abstract public String getAsShortText(long instant)(Code)(Java Doc) abstract public String getAsShortText(ReadablePartial partial, int fieldValue, Locale locale)(Code)(Java Doc) abstract public String getAsShortText(ReadablePartial partial, Locale locale)(Code)(Java Doc) abstract public String getAsShortText(int fieldValue, Locale locale)(Code)(Java Doc) abstract public String getAsText(long instant, Locale locale)(Code)(Java Doc) abstract public String getAsText(long instant)(Code)(Java Doc) abstract public String getAsText(ReadablePartial partial, int fieldValue, Locale locale)(Code)(Java Doc) abstract public String getAsText(ReadablePartial partial, Locale locale)(Code)(Java Doc) abstract public String getAsText(int fieldValue, Locale locale)(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 DurationField getDurationField()(Code)(Java Doc) abstract public int getLeapAmount(long instant)(Code)(Java Doc) abstract public DurationField getLeapDurationField()(Code)(Java Doc) abstract public int getMaximumShortTextLength(Locale locale)(Code)(Java Doc) abstract public int getMaximumTextLength(Locale locale)(Code)(Java Doc) abstract public int getMaximumValue()(Code)(Java Doc) abstract public int getMaximumValue(long instant)(Code)(Java Doc) abstract public int getMaximumValue(ReadablePartial instant)(Code)(Java Doc) abstract public int getMaximumValue(ReadablePartial instant, int[] values)(Code)(Java Doc) abstract public int getMinimumValue()(Code)(Java Doc) abstract public int getMinimumValue(long instant)(Code)(Java Doc) abstract public int getMinimumValue(ReadablePartial instant)(Code)(Java Doc) abstract public int getMinimumValue(ReadablePartial instant, int[] values)(Code)(Java Doc) abstract public String getName()(Code)(Java Doc) abstract public DurationField getRangeDurationField()(Code)(Java Doc) abstract public DateTimeFieldType getType()(Code)(Java Doc) abstract public boolean isLeap(long instant)(Code)(Java Doc) abstract public boolean isLenient()(Code)(Java Doc) abstract public boolean isSupported()(Code)(Java Doc) abstract public long remainder(long instant)(Code)(Java Doc) abstract public long roundCeiling(long instant)(Code)(Java Doc) abstract public long roundFloor(long instant)(Code)(Java Doc) abstract public long roundHalfCeiling(long instant)(Code)(Java Doc) abstract public long roundHalfEven(long instant)(Code)(Java Doc) abstract public long roundHalfFloor(long instant)(Code)(Java Doc) abstract public long set(long instant, int value)(Code)(Java Doc) abstract public int[] set(ReadablePartial instant, int fieldIndex, int[] values, int newValue)(Code)(Java Doc) abstract public long set(long instant, String text, Locale locale)(Code)(Java Doc) abstract public long set(long instant, String text)(Code)(Java Doc) abstract public int[] set(ReadablePartial instant, int fieldIndex, int[] values, String text, Locale locale)(Code)(Java Doc) abstract public String toString()(Code)(Java Doc)
|
|
|