- All Implemented Interfaces:
Serializable
- Enclosing class:
RangeFormat
Constants that are used as attribute keys in the iterator returned from
RangeFormat.formatToCharacterIterator(Object)
.- Since:
- 0.3
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RangeFormat.Field
Identifies the maximal value field in a range.static final RangeFormat.Field
Identifies the minimal value field in a range.static final RangeFormat.Field
Identifies the unit field in a range, if any.Fields inherited from class AttributedCharacterIterator.Attribute
INPUT_METHOD_SEGMENT, LANGUAGE, READING
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
Invoked on deserialization for resolving this instance to one of the predefined constants.Methods inherited from class AttributedCharacterIterator.Attribute
equals, getName, hashCode, toString
-
Field Details
-
MIN_VALUE
Identifies the minimal value field in a range. When formatting a string, this value may be specified to theFieldPosition
constructor in order to get the bounding index where the minimal value has been written. -
MAX_VALUE
Identifies the maximal value field in a range. When formatting a string, this value may be specified to theFieldPosition
constructor in order to get the bounding index where the maximal value has been written. -
UNIT
Identifies the unit field in a range, if any. When formatting a string, this value may be specified to theFieldPosition
constructor in order to get the bounding index where the unit has been written.
-
-
Method Details
-
readResolve
Invoked on deserialization for resolving this instance to one of the predefined constants.- Overrides:
readResolve
in classAttributedCharacterIterator.Attribute
- Returns:
- one of the predefined constants.
- Throws:
InvalidObjectException
- if this instance cannot be resolved.
-