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, set
getDifference, getDurationField, getDurationUnitMillis
addWrapField, 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, toString
setExtended
private static final long serialVersionUID
GJMonthOfYearDateTimeField(BasicChronology chronology)
public java.lang.String getAsText(int fieldValue, java.util.Locale locale)
BaseDateTimeField
The default implementation returns Integer.toString(get(instant)).
Note: subclasses that override this method should also override getMaximumTextLength.
getAsText
in class BaseDateTimeField
fieldValue
- 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)
BaseDateTimeField
The default implementation returns getAsText(fieldValue, locale).
Note: subclasses that override this method should also override getMaximumShortTextLength.
getAsShortText
in class BaseDateTimeField
fieldValue
- 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)
BaseDateTimeField
convertText
in class BaseDateTimeField
text
- the text to convertlocale
- the locale to convert usingpublic int getMaximumTextLength(java.util.Locale locale)
BaseDateTimeField
getMaximumTextLength
in class BaseDateTimeField
locale
- the locale to use for selecting a text symbolpublic int getMaximumShortTextLength(java.util.Locale locale)
BaseDateTimeField
getMaximumShortTextLength
in class BaseDateTimeField
locale
- the locale to use for selecting a text symbol