Package ghidra.util.database
Class DBCachedObjectStoreMap<T extends DBAnnotatedObject>
java.lang.Object
ghidra.util.database.DBCachedObjectStoreMap<T>
- Type Parameters:
T- the type of objects in the store
- All Implemented Interfaces:
Map<Long,,T> NavigableMap<Long,,T> SequencedMap<Long,,T> SortedMap<Long,T>
- Direct Known Subclasses:
DBCachedObjectStoreSubMap
public class DBCachedObjectStoreMap<T extends DBAnnotatedObject>
extends Object
implements NavigableMap<Long,T>
This provides the implementation of
DBCachedObjectStore.asMap()
This implements a map from object id (long) to object. Objects cannot be added directly to this
map, e.g., put(Long, DBAnnotatedObject) is not supported. Instead use
DBCachedObjectStore.create(long).
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DirectedIterator.Directionprotected final ErrorHandlerprotected final ReadWriteLockprotected final DBCachedObjectStore<T> -
Constructor Summary
ConstructorsConstructorDescriptionDBCachedObjectStoreMap(DBCachedObjectStore<T> store, ErrorHandler errHandler, ReadWriteLock lock, DirectedIterator.Direction direction) -
Method Summary
Modifier and TypeMethodDescriptionceilingEntry(Long key) ceilingKey(Long key) voidclear()Comparator<? super Long> booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()firstKey()floorEntry(Long key) higherEntry(Long key) booleanisEmpty()keySet()lastKey()lowerEntry(Long key) voidintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface java.util.NavigableMap
reversedMethods inherited from interface java.util.SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
Field Details
-
store
-
errHandler
-
lock
-
direction
-
-
Constructor Details
-
DBCachedObjectStoreMap
public DBCachedObjectStoreMap(DBCachedObjectStore<T> store, ErrorHandler errHandler, ReadWriteLock lock, DirectedIterator.Direction direction)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceMap<Long,T extends DBAnnotatedObject>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap<Long,T extends DBAnnotatedObject>
-
containsKey
- Specified by:
containsKeyin interfaceMap<Long,T extends DBAnnotatedObject>
-
containsValue
- Specified by:
containsValuein interfaceMap<Long,T extends DBAnnotatedObject>
-
get
- Specified by:
getin interfaceMap<Long,T extends DBAnnotatedObject>
-
put
- Specified by:
putin interfaceMap<Long,T extends DBAnnotatedObject>
-
remove
- Specified by:
removein interfaceMap<Long,T extends DBAnnotatedObject>
-
putAll
- Specified by:
putAllin interfaceMap<Long,T extends DBAnnotatedObject>
-
clear
public void clear()- Specified by:
clearin interfaceMap<Long,T extends DBAnnotatedObject>
-
comparator
- Specified by:
comparatorin interfaceSortedMap<Long,T extends DBAnnotatedObject>
-
firstEntry
- Specified by:
firstEntryin interfaceNavigableMap<Long,T extends DBAnnotatedObject> - Specified by:
firstEntryin interfaceSequencedMap<Long,T extends DBAnnotatedObject>
-
firstKey
- Specified by:
firstKeyin interfaceSortedMap<Long,T extends DBAnnotatedObject>
-
lastEntry
- Specified by:
lastEntryin interfaceNavigableMap<Long,T extends DBAnnotatedObject> - Specified by:
lastEntryin interfaceSequencedMap<Long,T extends DBAnnotatedObject>
-
lastKey
- Specified by:
lastKeyin interfaceSortedMap<Long,T extends DBAnnotatedObject>
-
lowerEntry
- Specified by:
lowerEntryin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
lowerKey
- Specified by:
lowerKeyin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
floorEntry
- Specified by:
floorEntryin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
floorKey
- Specified by:
floorKeyin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
ceilingEntry
- Specified by:
ceilingEntryin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
ceilingKey
- Specified by:
ceilingKeyin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
higherEntry
- Specified by:
higherEntryin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
higherKey
- Specified by:
higherKeyin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
pollFirstEntry
- Specified by:
pollFirstEntryin interfaceNavigableMap<Long,T extends DBAnnotatedObject> - Specified by:
pollFirstEntryin interfaceSequencedMap<Long,T extends DBAnnotatedObject>
-
pollLastEntry
- Specified by:
pollLastEntryin interfaceNavigableMap<Long,T extends DBAnnotatedObject> - Specified by:
pollLastEntryin interfaceSequencedMap<Long,T extends DBAnnotatedObject>
-
keySet
- Specified by:
keySetin interfaceMap<Long,T extends DBAnnotatedObject> - Specified by:
keySetin interfaceSortedMap<Long,T extends DBAnnotatedObject>
-
values
- Specified by:
valuesin interfaceMap<Long,T extends DBAnnotatedObject> - Specified by:
valuesin interfaceSortedMap<Long,T extends DBAnnotatedObject>
-
entrySet
- Specified by:
entrySetin interfaceMap<Long,T extends DBAnnotatedObject> - Specified by:
entrySetin interfaceSortedMap<Long,T extends DBAnnotatedObject>
-
descendingMap
- Specified by:
descendingMapin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
descendingKeySet
- Specified by:
descendingKeySetin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
subMap
public DBCachedObjectStoreSubMap<T> subMap(Long fromKey, boolean fromInclusive, Long toKey, boolean toInclusive) - Specified by:
subMapin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
headMap
- Specified by:
headMapin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
tailMap
- Specified by:
tailMapin interfaceNavigableMap<Long,T extends DBAnnotatedObject>
-
subMap
- Specified by:
subMapin interfaceNavigableMap<Long,T extends DBAnnotatedObject> - Specified by:
subMapin interfaceSortedMap<Long,T extends DBAnnotatedObject>
-
headMap
- Specified by:
headMapin interfaceNavigableMap<Long,T extends DBAnnotatedObject> - Specified by:
headMapin interfaceSortedMap<Long,T extends DBAnnotatedObject>
-
tailMap
- Specified by:
tailMapin interfaceNavigableMap<Long,T extends DBAnnotatedObject> - Specified by:
tailMapin interfaceSortedMap<Long,T extends DBAnnotatedObject>
-