Class CheckedConcurrentSkipListMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentSkipListMap<K,V>
com.gigaspaces.internal.utils.collections.CheckedConcurrentSkipListMap<K,V>
- Type Parameters:
K- keyV- value
- All Implemented Interfaces:
Serializable,Cloneable,ConcurrentMap<K,,V> ConcurrentNavigableMap<K,,V> Map<K,,V> NavigableMap<K,,V> SortedMap<K,V>
ConcurrentSkipListMap doesn't throw a ClassCastException on the first key if it is not Comparable.
It'll throw an exception if you add a second key. This is just because ConcurrentSkipListMap doesn't
have special logic to verify that the first key is comparable. This is a JDK oversight that might be
fixed in the future.
After successful insertion of a non-Comparable key, removal is also affected by this, and the key can't be removed.
- Since:
- 16.4
- See Also:
-
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> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.concurrent.ConcurrentSkipListMap
ceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, equals, firstEntry, firstKey, floorEntry, floorKey, forEach, get, getOrDefault, headMap, headMap, higherEntry, higherKey, isEmpty, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, remove, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesMethods inherited from class java.util.AbstractMap
hashCode, putAll, toString
-
Constructor Details
-
CheckedConcurrentSkipListMap
public CheckedConcurrentSkipListMap()
-
-
Method Details
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap<K,V> - Specified by:
putIfAbsentin interfaceMap<K,V> - Overrides:
putIfAbsentin classConcurrentSkipListMap<K,V>
-
put
-