Class ArrayMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
net.ontopia.topicmaps.query.utils.ArrayMap<K,V>
- All Implemented Interfaces:
Map<K,V>
INTERNAL: Immutable Map implementation that stores its keys and
values in two arrays. Note that the implementation is immutable in
that you cannot modify it using the public Map interface. You can
modify it by modifying the underlying arrays.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
keys
-
values
-
size
protected int size
-
-
Constructor Details
-
ArrayMap
-
ArrayMap
-
-
Method Details
-
getKeys
-
setKeys
-
getValues
-
setValues
-
get
-
size
public int size() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V> - Overrides:
containsValuein classAbstractMap<K,V>
-
equals
-
isEmpty
public boolean isEmpty() -
keySet
-
entrySet
-
values
-
clear
public void clear() -
remove
-