Class FilteredCodes
java.lang.Object
org.apache.sis.internal.util.AbstractMap<String,Boolean>
org.apache.sis.referencing.factory.FilteredCodes
A map of authority codes filtered by their type.
This map is used for implementation of
CommonAuthorityFactory.getAuthorityCodes(Class)
.
Only keys in this map are useful; values are meaningless.- Since:
- 0.7
- Version:
- 0.7
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.util.AbstractMap
AbstractMap.EntryIterator<K,
V>, AbstractMap.IteratorAdapter<K, V>, AbstractMap.KeyIterator -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFilteredCodes
(Map<String, Class<?>> codes, Class<?> type) Creates a new filtered view over the given authority codes. -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractMap.EntryIterator
<String, Boolean> Returns an iterator over the entries to retain.Returns a non-null value if the given code is included in the set.Methods inherited from class org.apache.sis.internal.util.AbstractMap
addKey, addValue, clear, containsKey, containsValue, entrySet, equals, getOrDefault, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
codes
The codes known to the authority factory, associated with their CRS type. -
type
The type of spatial reference objects for which the codes are desired.
-
-
Constructor Details
-
FilteredCodes
Creates a new filtered view over the given authority codes.
-
-
Method Details
-
entryIterator
Returns an iterator over the entries to retain. Values in the returned entries are meaningless; only the keys matter.- Specified by:
entryIterator
in classAbstractMap<String,
Boolean> - Returns:
- an iterator over the entries in this map, or
null
.
-
get
Returns a non-null value if the given code is included in the set.
-