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
Fieldinner class. valueis the numeric value being formatted for that particular field.startandlimitare the range of index in theSimpleCharacterIterator.textwhere 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; valueisDouble.valueOf(10);startis 0;limitis 3.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final intThe range of index inSimpleCharacterIterator.textwhere the value has been formatted.(package private) final FormattedCharacterIterator.EntryThe previous entry in a chained list of entries for the same key, ornullif none.private static final longFor cross-version compatibility.(package private) final intThe range of index inSimpleCharacterIterator.textwhere the value has been formatted.(package private) final ObjectThe 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.textwhere the value has been formatted. See class javadoc for more information. -
limit
final int limitThe range of index inSimpleCharacterIterator.textwhere 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, ornullif 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.
-