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 - key
V - value
All Implemented Interfaces:
Serializable, Cloneable, ConcurrentMap<K,V>, ConcurrentNavigableMap<K,V>, Map<K,V>, NavigableMap<K,V>, SortedMap<K,V>

public class CheckedConcurrentSkipListMap<K,V> extends ConcurrentSkipListMap<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: