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, setgetDurationField, getMaximumValueForSet, getMinimumValue, getUnitMillis, isLenient, remainder, roundCeiling, roundFlooradd, 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, toStringsetExtendedprivate static final long serialVersionUID
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 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 BaseDateTimeFieldmillis - 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)
BaseDateTimeFieldgetMaximumTextLength in class BaseDateTimeFieldlocale - the locale to use for selecting a text symbol