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.- Since:
- 0.5
- Version:
- 0.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intIndex 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 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:
setValuein interfaceMap.Entry<String, AbstractAttribute<?>>- Overrides:
setValuein classAbstractMapEntry<String, AbstractAttribute<?>>- Parameters:
value- the new value to be stored in this entry.- Returns:
- the previous value (may be
null).
-