Package org.apache.sis.feature
Class CharacteristicMap.Entry
java.lang.Object
org.apache.sis.internal.util.AbstractMapEntry<String,AbstractAttribute<?>>
org.apache.sis.feature.CharacteristicMap.Entry
- All Implemented Interfaces:
Map.Entry<String,
AbstractAttribute<?>>
- Enclosing class:
CharacteristicMap
An entry returned by the
AbstractMap.entrySet()
iterator.
The key and value are never null, even in case of concurrent modification.
This entry supports the setValue(Attribute)
operation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
Index of the attribute characteristics represented by this entry.private AbstractAttribute
<?> The current attribute value, which is guaranteed to be non-null. -
Constructor Summary
ConstructorsConstructorDescriptionEntry
(int index, AbstractAttribute<?> value) Creates a new entry for the characteristic at the given index. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Returns the name of the attribute characteristic.getValue()
Returns the attribute characteristic (nevernull
).setValue
(AbstractAttribute<?> value) Sets the attribute characteristic.Methods inherited from class org.apache.sis.internal.util.AbstractMapEntry
equals, hashCode, toString
-
Field Details
-
index
private final int indexIndex of the attribute characteristics represented by this entry. -
value
The current attribute value, which is guaranteed to be non-null.
-
-
Constructor Details
-
Entry
Entry(int index, AbstractAttribute<?> value) Creates a new entry for the characteristic at the given index.
-
-
Method Details
-
getKey
Returns the name of the attribute characteristic. -
getValue
Returns the attribute characteristic (nevernull
). -
setValue
Sets the attribute characteristic.- Specified by:
setValue
in interfaceMap.Entry<String,
AbstractAttribute<?>> - Overrides:
setValue
in classAbstractMapEntry<String,
AbstractAttribute<?>> - Parameters:
value
- the new value to be stored in this entry.- Returns:
- the previous value (may be
null
).
-