final class GJMonthOfYearDateTimeField extends BasicMonthOfYearDateTimeField
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
Serialization version
|
| Constructor and Description |
|---|
GJMonthOfYearDateTimeField(BasicChronology chronology)
Restricted constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
convertText(java.lang.String text,
java.util.Locale locale)
Convert the specified text and locale into a value.
|
java.lang.String |
getAsShortText(int fieldValue,
java.util.Locale locale)
Get the human-readable, short text value of this field from the field value.
|
java.lang.String |
getAsText(int fieldValue,
java.util.Locale locale)
Get the human-readable, text value of this field from the field value.
|
int |
getMaximumShortTextLength(java.util.Locale locale)
Get the maximum short text value for this field.
|
int |
getMaximumTextLength(java.util.Locale locale)
Get the maximum text value for this field.
|
add, add, add, addWrapField, get, getDifferenceAsLong, getLeapAmount, getLeapDurationField, getMaximumValue, getMinimumValue, getRangeDurationField, isLeap, isLenient, remainder, roundFloor, setgetDifference, getDurationField, getDurationUnitMillisaddWrapField, addWrapPartial, getAsShortText, getAsShortText, getAsShortText, getAsShortText, getAsText, getAsText, getAsText, getAsText, getMaximumValue, getMaximumValue, getMaximumValue, getMinimumValue, getMinimumValue, getMinimumValue, getName, getType, isSupported, roundCeiling, roundHalfCeiling, roundHalfEven, roundHalfFloor, set, set, set, set, toStringsetExtendedprivate static final long serialVersionUID
GJMonthOfYearDateTimeField(BasicChronology chronology)
public java.lang.String getAsText(int fieldValue,
java.util.Locale locale)
BaseDateTimeFieldThe default implementation returns Integer.toString(get(instant)).
Note: subclasses that override this method should also override getMaximumTextLength.
getAsText in class BaseDateTimeFieldfieldValue - the numeric value to convert to textlocale - the locale to use for selecting a text symbol, null for defaultpublic java.lang.String getAsShortText(int fieldValue,
java.util.Locale locale)
BaseDateTimeFieldThe default implementation returns getAsText(fieldValue, locale).
Note: subclasses that override this method should also override getMaximumShortTextLength.
getAsShortText in class BaseDateTimeFieldfieldValue - the numeric value to convert to textlocale - the locale to use for selecting a text symbol, null for defaultprotected int convertText(java.lang.String text,
java.util.Locale locale)
BaseDateTimeFieldconvertText in class BaseDateTimeFieldtext - the text to convertlocale - the locale to convert usingpublic int getMaximumTextLength(java.util.Locale locale)
BaseDateTimeFieldgetMaximumTextLength in class BaseDateTimeFieldlocale - the locale to use for selecting a text symbolpublic int getMaximumShortTextLength(java.util.Locale locale)
BaseDateTimeFieldgetMaximumShortTextLength in class BaseDateTimeFieldlocale - the locale to use for selecting a text symbol