Package org.apache.sis.metadata
Class IndexMap
Map of property indices for a given implementation class. This map is read-only.
- Since:
- 0.8
- Version:
- 0.8
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.metadata.PropertyMap
PropertyMap.Entries, PropertyMap.Iter
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields inherited from class org.apache.sis.metadata.PropertyMap
accessor, entrySet, keyPolicy
-
Constructor Summary
ConstructorsConstructorDescriptionIndexMap
(PropertyAccessor accessor, KeyNamePolicy keyPolicy) Creates a name map for the specified accessor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value to which the specified key is mapped, ornull
if this map contains no mapping for the key.iterator()
Returns an iterator over the entries contained in this map.Methods inherited from class org.apache.sis.metadata.PropertyMap
containsKey, entrySet, size
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
IndexMap
IndexMap(PropertyAccessor accessor, KeyNamePolicy keyPolicy) Creates a name map for the specified accessor.- Parameters:
accessor
- the accessor to use for the metadata.keyPolicy
- determines the string representation of keys in the map.
-
-
Method Details
-
get
Returns the value to which the specified key is mapped, ornull
if this map contains no mapping for the key. -
iterator
Returns an iterator over the entries contained in this map.- Specified by:
iterator
in classPropertyMap<Integer>
-