Package org.apache.sis.measure
Class FormatField
java.lang.Object
java.text.AttributedCharacterIterator.Attribute
java.text.Format.Field
org.apache.sis.measure.FormatField
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AngleFormat.Field
,RangeFormat.Field
Base class of format fields.
- Since:
- 0.3
- Version:
- 0.3
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final FormatField
A sentinel value forFormattedCharacterIterator
internal usage only, meaning that all attributes shall be taken in account while computing a run range.(package private) final int
The numeric*_FIELD
value for this constant.private static final long
Serial number for cross-version compatibility.Fields inherited from class java.text.AttributedCharacterIterator.Attribute
INPUT_METHOD_SEGMENT, LANGUAGE, READING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
Invoked on deserialization for resolving this instance to one of the predefined constants.Methods inherited from class java.text.AttributedCharacterIterator.Attribute
equals, getName, hashCode, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for cross-version compatibility.- See Also:
-
ALL
A sentinel value forFormattedCharacterIterator
internal usage only, meaning that all attributes shall be taken in account while computing a run range. -
field
final transient int fieldThe numeric*_FIELD
value for this constant. This value doesn't need to be serialized, becausereadResolve()
will locate the original constant on deserialization.
-
-
Constructor Details
-
FormatField
FormatField(String name, int field) Creates a new field of the given name.- Parameters:
name
- the name, which shall be identical to the name of the public static constant.field
- the numeric identifier of this field.
-
-
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.
-