Module org.eclipse.persistence.jpa
Class IsolatedHashMap<K,V>
java.lang.Object
org.eclipse.persistence.internal.jpa.IsolatedHashMap<K,V>
- All Implemented Interfaces:
Map<K,
V>
Partition isolated
HashMap
. Provides HashMap with partition isolation for ServerPlatform
s
that support partitioning. Partition isolation is transparent and keeps Map
API unchanged.-
Nested Class Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
newMap
INTERNAL: Partition isolatedMap
factory. ProvidesMap
separated for individual partitions. Factory method will returnHashMap
on platforms without partitions support. SlowerIsolatedHashMap
instance will be used only on platforms with partitions support. -
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-