Package org.apache.sis.measure
Class FormattedCharacterIterator.Entry
java.lang.Object
org.apache.sis.measure.FormattedCharacterIterator.Entry
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FormattedCharacterIterator
Holds a field value, together with the run range in which this value is valid.
Contains also a reference to the previous
Entry
in order to build a chained
list (in reverse of insertion order) if many values exist for the same field.
To be more specific:
- The map key is one of the static constants defined in the formatter
Field
inner class. value
is the numeric value being formatted for that particular field.start
andlimit
are the range of index in theSimpleCharacterIterator.text
where the field value has been formatted.
AngleFormat
formats "10°30′" and the user wants information
about the degrees field, then:
- The map key is
AngleFormat.Field.DEGREES
; value
isDouble.valueOf(10)
;start
is 0;limit
is 3.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int
The range of index inSimpleCharacterIterator.text
where the value has been formatted.(package private) final FormattedCharacterIterator.Entry
The previous entry in a chained list of entries for the same key, ornull
if none.private static final long
For cross-version compatibility.(package private) final int
The range of index inSimpleCharacterIterator.text
where the value has been formatted.(package private) final Object
The attribute value. -
Constructor Summary
ConstructorsConstructorDescriptionEntry
(AttributedCharacterIterator.Attribute field, Object value, int start, int limit, Map<AttributedCharacterIterator.Attribute, FormattedCharacterIterator.Entry> attributes) Creates a new entry for the given value, together with the range of index where the field value has been formatted. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
value
The attribute value. -
start
final int startThe range of index inSimpleCharacterIterator.text
where the value has been formatted. See class javadoc for more information. -
limit
final int limitThe range of index inSimpleCharacterIterator.text
where the value has been formatted. See class javadoc for more information. -
previous
The previous entry in a chained list of entries for the same key, ornull
if none.
-
-
Constructor Details
-
Entry
Entry(AttributedCharacterIterator.Attribute field, Object value, int start, int limit, Map<AttributedCharacterIterator.Attribute, FormattedCharacterIterator.Entry> attributes) Creates a new entry for the given value, together with the range of index where the field value has been formatted. See class javadoc for more information.
-