private static class BasicChronology.HalfdayField extends PreciseDateTimeField
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
HalfdayField() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAsText(int fieldValue,
java.util.Locale locale)
Get the human-readable, text value of this field from the field value.
|
int |
getMaximumTextLength(java.util.Locale locale)
Get the maximum text value for this field.
|
long |
set(long millis,
java.lang.String text,
java.util.Locale locale)
Sets a value in the milliseconds supplied from a human-readable, text value.
|
addWrapField, get, getMaximumValue, getRange, getRangeDurationField, set
getDurationField, getMaximumValueForSet, getMinimumValue, getUnitMillis, isLenient, remainder, roundCeiling, roundFloor
add, add, add, addWrapField, addWrapPartial, convertText, getAsShortText, getAsShortText, getAsShortText, getAsShortText, getAsShortText, getAsText, getAsText, getAsText, getAsText, getDifference, getDifferenceAsLong, getLeapAmount, getLeapDurationField, getMaximumShortTextLength, getMaximumValue, getMaximumValue, getMaximumValue, getMinimumValue, getMinimumValue, getMinimumValue, getName, getType, isLeap, isSupported, roundHalfCeiling, roundHalfEven, roundHalfFloor, set, set, set, toString
setExtended
private static final long serialVersionUID
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 long set(long millis, java.lang.String text, java.util.Locale locale)
BaseDateTimeField
This implementation uses convertText(String, Locale)
and
BaseDateTimeField.set(long, int)
.
Note: subclasses that override this method should also override getAsText.
set
in class BaseDateTimeField
millis
- the milliseconds from 1970-01-01T00:00:00Z to set intext
- the text value to setlocale
- the locale to use for selecting a text symbol, null for defaultpublic int getMaximumTextLength(java.util.Locale locale)
BaseDateTimeField
getMaximumTextLength
in class BaseDateTimeField
locale
- the locale to use for selecting a text symbol