Package org.sosy_lab.common.collect
Interface PersistentSortedMap<K,V extends @Nullable Object>
- Type Parameters:
K- The type of keys.V- The type of values.
- All Superinterfaces:
Map<K,,V> NavigableMap<K,,V> PersistentMap<K,,V> SortedMap<K,V>
- All Known Implementing Classes:
PathCopyingPersistentTreeMap
@Immutable(containerOf={"K","V"})
public interface PersistentSortedMap<K,V extends @Nullable Object>
extends NavigableMap<K,V>
Sub-interface of
PersistentMap analog to NavigableMap.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionempty()Replacement for {PersistentMap.clear()that returns an empty instance.entrySet()keySet()Deprecated.Unsupported operation.Deprecated.Unsupported operation.putAndCopy(K key, V value) Replacement for {PersistentMap.put(Object, Object)that returns a fresh instance.removeAndCopy(Object pKey) Replacement for {PersistentMap.remove(Object)that returns a fresh instance.Methods inherited from interface java.util.Map
containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, sizeMethods inherited from interface java.util.NavigableMap
ceilingEntry, ceilingKey, descendingKeySet, firstEntry, floorEntry, floorKey, higherEntry, higherKey, lastEntry, lowerEntry, lowerKey, navigableKeySetMethods inherited from interface org.sosy_lab.common.collect.PersistentMap
clear, compute, computeIfAbsent, computeIfPresent, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllMethods inherited from interface java.util.SortedMap
comparator, firstKey, lastKey, values
-
Method Details
-
putAndCopy
Description copied from interface:PersistentMapReplacement for {PersistentMap.put(Object, Object)that returns a fresh instance.- Specified by:
putAndCopyin interfacePersistentMap<K,V extends @Nullable Object>
-
removeAndCopy
Description copied from interface:PersistentMapReplacement for {PersistentMap.remove(Object)that returns a fresh instance.- Specified by:
removeAndCopyin interfacePersistentMap<K,V extends @Nullable Object>
-
empty
Description copied from interface:PersistentMapReplacement for {PersistentMap.clear()that returns an empty instance.- Specified by:
emptyin interfacePersistentMap<K,V extends @Nullable Object>
-
entrySet
NavigableSet<Map.Entry<K,V>> entrySet() -
keySet
NavigableSet<K> keySet() -
descendingMap
NavigableMap<K,V> descendingMap()- Specified by:
descendingMapin interfaceNavigableMap<K,V extends @Nullable Object>
-
subMap
-
subMap
- Specified by:
subMapin interfaceNavigableMap<K,V extends @Nullable Object>
-
headMap
-
headMap
- Specified by:
headMapin interfaceNavigableMap<K,V extends @Nullable Object>
-
tailMap
-
tailMap
- Specified by:
tailMapin interfaceNavigableMap<K,V extends @Nullable Object>
-
pollFirstEntry
Deprecated.Unsupported operation.- Specified by:
pollFirstEntryin interfaceNavigableMap<K,V extends @Nullable Object> - Throws:
UnsupportedOperationException- Always.
-
pollLastEntry
Deprecated.Unsupported operation.- Specified by:
pollLastEntryin interfaceNavigableMap<K,V extends @Nullable Object> - Throws:
UnsupportedOperationException- Always.
-