| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.joda.time.DateTimeFieldorg.joda.time.field.UnsupportedDateTimeFieldMethod Summary | |
long |
|
long |
|
int[] |
|
long |
|
int[] |
|
int[] |
|
int |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
int |
|
long |
|
DurationField |
|
static UnsupportedDateTimeField |
|
int |
|
DurationField |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
String |
|
DurationField |
|
DateTimeFieldType |
|
boolean |
|
boolean |
|
boolean |
|
long |
|
long |
|
long |
|
long |
|
long |
|
long |
|
long |
|
long |
|
long |
|
int[] |
|
int[] |
|
String |
|
public long add(long instant,
int value)Delegates to the duration field.
- Overrides:
- add in interface DateTimeField
public long add(long instant,
long value)Delegates to the duration field.
- Overrides:
- add in interface DateTimeField
public int[] add(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd)
Always throws UnsupportedOperationException
- Overrides:
- add in interface DateTimeField
public long addWrapField(long instant,
int value)Always throws UnsupportedOperationException
- Overrides:
- addWrapField in interface DateTimeField
public int[] addWrapField(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd)
Always throws UnsupportedOperationException
- Overrides:
- addWrapField in interface DateTimeField
public int[] addWrapPartial(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd)
Always throws UnsupportedOperationException
- Overrides:
- addWrapPartial in interface DateTimeField
public int get(long instant)
Always throws UnsupportedOperationException
- Overrides:
- get in interface DateTimeField
public String getAsShortText(int fieldValue,
Locale locale)Always throws UnsupportedOperationException
- Overrides:
- getAsShortText in interface DateTimeField
public String getAsShortText(long instant)
Always throws UnsupportedOperationException
- Overrides:
- getAsShortText in interface DateTimeField
public String getAsShortText(long instant,
Locale locale)Always throws UnsupportedOperationException
- Overrides:
- getAsShortText in interface DateTimeField
public String getAsShortText(ReadablePartial partial, Locale locale)
Always throws UnsupportedOperationException
- Overrides:
- getAsShortText in interface DateTimeField
public String getAsShortText(ReadablePartial partial, int fieldValue, Locale locale)
Always throws UnsupportedOperationException
- Overrides:
- getAsShortText in interface DateTimeField
public String getAsText(int fieldValue,
Locale locale)Always throws UnsupportedOperationException
- Overrides:
- getAsText in interface DateTimeField
public String getAsText(long instant)
Always throws UnsupportedOperationException
- Overrides:
- getAsText in interface DateTimeField
public String getAsText(long instant,
Locale locale)Always throws UnsupportedOperationException
- Overrides:
- getAsText in interface DateTimeField
public String getAsText(ReadablePartial partial, Locale locale)
Always throws UnsupportedOperationException
- Overrides:
- getAsText in interface DateTimeField
public String getAsText(ReadablePartial partial, int fieldValue, Locale locale)
Always throws UnsupportedOperationException
- Overrides:
- getAsText in interface DateTimeField
public int getDifference(long minuendInstant,
long subtrahendInstant)Delegates to the duration field.
- Overrides:
- getDifference in interface DateTimeField
public long getDifferenceAsLong(long minuendInstant,
long subtrahendInstant)Delegates to the duration field.
- Overrides:
- getDifferenceAsLong in interface DateTimeField
public DurationField getDurationField()
Even though this DateTimeField is unsupported, the duration field might be supported.
- Overrides:
- getDurationField in interface DateTimeField
- Returns:
- a possibly supported DurationField
public static UnsupportedDateTimeField getInstance(DateTimeFieldType type, DurationField durationField)
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
- Returns:
- the instance
public int getLeapAmount(long instant)
Always throws UnsupportedOperationException
- Overrides:
- getLeapAmount in interface DateTimeField
public DurationField getLeapDurationField()
Always returns null.
- Overrides:
- getLeapDurationField in interface DateTimeField
- Returns:
- null always
public int getMaximumShortTextLength(Locale locale)
Always throws UnsupportedOperationException
- Overrides:
- getMaximumShortTextLength in interface DateTimeField
public int getMaximumTextLength(Locale locale)
Always throws UnsupportedOperationException
- Overrides:
- getMaximumTextLength in interface DateTimeField
public int getMaximumValue()
Always throws UnsupportedOperationException
- Overrides:
- getMaximumValue in interface DateTimeField
public int getMaximumValue(long instant)
Always throws UnsupportedOperationException
- Overrides:
- getMaximumValue in interface DateTimeField
public int getMaximumValue(ReadablePartial instant)
Always throws UnsupportedOperationException
- Overrides:
- getMaximumValue in interface DateTimeField
public int getMaximumValue(ReadablePartial instant, int[] values)
Always throws UnsupportedOperationException
- Overrides:
- getMaximumValue in interface DateTimeField
public int getMinimumValue()
Always throws UnsupportedOperationException
- Overrides:
- getMinimumValue in interface DateTimeField
public int getMinimumValue(long instant)
Always throws UnsupportedOperationException
- Overrides:
- getMinimumValue in interface DateTimeField
public int getMinimumValue(ReadablePartial instant)
Always throws UnsupportedOperationException
- Overrides:
- getMinimumValue in interface DateTimeField
public int getMinimumValue(ReadablePartial instant, int[] values)
Always throws UnsupportedOperationException
- Overrides:
- getMinimumValue in interface DateTimeField
public String getName()
Get the name of the field. By convention, names follow a pattern of "dddOfRrr", where "ddd" represents the (singular) duration unit field name and "Rrr" represents the (singular) duration range field name. If the range field is not applicable, then the name of the field is simply the (singular) duration field name.
- Overrides:
- getName in interface DateTimeField
- Returns:
- field name
public DurationField getRangeDurationField()
Always returns null.
- Overrides:
- getRangeDurationField in interface DateTimeField
- Returns:
- null always
public DateTimeFieldType getType()
Get the type of the field.
- Overrides:
- getType in interface DateTimeField
- Returns:
- field type
public boolean isLeap(long instant)
Always throws UnsupportedOperationException
- Overrides:
- isLeap in interface DateTimeField
public boolean isLenient()
This field is not lenient.
- Overrides:
- isLenient in interface DateTimeField
- Returns:
- false always
public boolean isSupported()
This field is not supported.
- Overrides:
- isSupported in interface DateTimeField
- Returns:
- false always
public long remainder(long instant)
Always throws UnsupportedOperationException
- Overrides:
- remainder in interface DateTimeField
public long roundCeiling(long instant)
Always throws UnsupportedOperationException
- Overrides:
- roundCeiling in interface DateTimeField
public long roundFloor(long instant)
Always throws UnsupportedOperationException
- Overrides:
- roundFloor in interface DateTimeField
public long roundHalfCeiling(long instant)
Always throws UnsupportedOperationException
- Overrides:
- roundHalfCeiling in interface DateTimeField
public long roundHalfEven(long instant)
Always throws UnsupportedOperationException
- Overrides:
- roundHalfEven in interface DateTimeField
public long roundHalfFloor(long instant)
Always throws UnsupportedOperationException
- Overrides:
- roundHalfFloor in interface DateTimeField
public long set(long instant,
String text)Always throws UnsupportedOperationException
- Overrides:
- set in interface DateTimeField
public long set(long instant,
String text,
Locale locale)Always throws UnsupportedOperationException
- Overrides:
- set in interface DateTimeField
public long set(long instant,
int value)Always throws UnsupportedOperationException
- Overrides:
- set in interface DateTimeField
public int[] set(ReadablePartial instant, int fieldIndex, int[] values, String text, Locale locale)
Always throws UnsupportedOperationException
- Overrides:
- set in interface DateTimeField
public int[] set(ReadablePartial instant, int fieldIndex, int[] values, int newValue)
Always throws UnsupportedOperationException
- Overrides:
- set in interface DateTimeField
public String toString()
Get a suitable debug string.
- Overrides:
- toString in interface DateTimeField
- Returns:
- debug string