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 ofPersistentMapanalog toNavigableMap.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description NavigableMap<K,V>descendingMap()PersistentSortedMap<K,V>empty()Replacement for {PersistentMap.clear()that returns an empty instance.NavigableSet<Map.Entry<K,V>>entrySet()NavigableMap<K,V>headMap(K pToKey)NavigableMap<K,V>headMap(K pToKey, boolean pInclusive)NavigableSet<K>keySet()Map.Entry<K,V>pollFirstEntry()Deprecated.Unsupported operation.Map.Entry<K,V>pollLastEntry()Deprecated.Unsupported operation.PersistentSortedMap<K,V>putAndCopy(K key, V value)Replacement for {PersistentMap.put(Object, Object)that returns a fresh instance.PersistentSortedMap<K,V>removeAndCopy(Object pKey)Replacement for {PersistentMap.remove(Object)that returns a fresh instance.NavigableMap<K,V>subMap(K pFromKey, boolean pFromInclusive, K pToKey, boolean pToInclusive)NavigableMap<K,V>subMap(K pFromKey, K pToKey)NavigableMap<K,V>tailMap(K pFromKey)NavigableMap<K,V>tailMap(K pFromKey, boolean pInclusive)-
Methods inherited from interface java.util.Map
containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, size
-
Methods inherited from interface java.util.NavigableMap
ceilingEntry, ceilingKey, descendingKeySet, firstEntry, floorEntry, floorKey, higherEntry, higherKey, lastEntry, lowerEntry, lowerKey, navigableKeySet
-
Methods inherited from interface org.sosy_lab.common.collect.PersistentMap
clear, compute, computeIfAbsent, computeIfPresent, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll
-
Methods inherited from interface java.util.SortedMap
comparator, firstKey, lastKey, values
-
-
-
-
Method Detail
-
putAndCopy
@CheckReturnValue PersistentSortedMap<K,V> putAndCopy(K key, V value)
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
@CheckReturnValue PersistentSortedMap<K,V> removeAndCopy(Object pKey)
Description copied from interface:PersistentMapReplacement for {PersistentMap.remove(Object)that returns a fresh instance.- Specified by:
removeAndCopyin interfacePersistentMap<K,V extends @Nullable Object>
-
empty
@CheckReturnValue PersistentSortedMap<K,V> 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
NavigableMap<K,V> subMap(K pFromKey, K pToKey)
-
subMap
NavigableMap<K,V> subMap(K pFromKey, boolean pFromInclusive, K pToKey, boolean pToInclusive)
- Specified by:
subMapin interfaceNavigableMap<K,V extends @Nullable Object>
-
headMap
NavigableMap<K,V> headMap(K pToKey)
-
headMap
NavigableMap<K,V> headMap(K pToKey, boolean pInclusive)
- Specified by:
headMapin interfaceNavigableMap<K,V extends @Nullable Object>
-
tailMap
NavigableMap<K,V> tailMap(K pFromKey)
-
tailMap
NavigableMap<K,V> tailMap(K pFromKey, boolean pInclusive)
- Specified by:
tailMapin interfaceNavigableMap<K,V extends @Nullable Object>
-
pollFirstEntry
@Deprecated Map.Entry<K,V> pollFirstEntry()
Deprecated.Unsupported operation.- Specified by:
pollFirstEntryin interfaceNavigableMap<K,V extends @Nullable Object>- Throws:
UnsupportedOperationException- Always.
-
pollLastEntry
@Deprecated Map.Entry<K,V> pollLastEntry()
Deprecated.Unsupported operation.- Specified by:
pollLastEntryin interfaceNavigableMap<K,V extends @Nullable Object>- Throws:
UnsupportedOperationException- Always.
-
-