Package org.infinispan.commons.util
Class ArrayMap<K,V> 
java.lang.Object
java.util.AbstractMap<K,V>
 
org.infinispan.commons.util.ArrayMap<K,V> 
- All Implemented Interfaces:
- Map<K,- V> 
- Direct Known Subclasses:
- HopscotchHashMap
Base for classes that implement hash map by storing keys in one array and values in another.
 It assumes that all keys that are in the array are contained in the map and that values
 are on corresponding indices in the map.
 Does not support null keys nor values.
 Forces implementation of methods 
get(Object), put(Object, Object), remove(Object)- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> 
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.util.AbstractMapclone, equals, hashCode, isEmpty, putAll, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
- 
Field Details- 
sizeprotected int size
- 
keys
- 
values
- 
modCountprotected int modCount
 
- 
- 
Constructor Details- 
ArrayMappublic ArrayMap()
 
- 
- 
Method Details- 
get
- 
put
- 
remove
- 
sizepublic int size()
- 
containsValue- Specified by:
- containsValuein interface- Map<K,- V> 
- Overrides:
- containsValuein class- AbstractMap<K,- V> 
 
- 
keySet
- 
values
- 
entrySet
- 
containsKey- Specified by:
- containsKeyin interface- Map<K,- V> 
- Overrides:
- containsKeyin class- AbstractMap<K,- V> 
 
- 
clearpublic void clear()
 
-