Package ghidra.util.database
Class DBCachedObjectStoreFoundKeysValueCollection<T extends DBAnnotatedObject>
java.lang.Object
ghidra.util.database.DBCachedObjectStoreFoundKeysValueCollection<T>
- Type Parameters:
T- the type of objects in the store
- All Implemented Interfaces:
Iterable<T>,Collection<T>
public class DBCachedObjectStoreFoundKeysValueCollection<T extends DBAnnotatedObject>
extends Object
implements Collection<T>
This provides the implementation of
DBCachedObjectIndex.get(Object)-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ErrorHandlerprotected final ReadWriteLockprotected final DBCachedObjectStore<T> -
Constructor Summary
ConstructorsConstructorDescriptionDBCachedObjectStoreFoundKeysValueCollection(DBCachedObjectStore<T> store, ErrorHandler errHandler, ReadWriteLock lock, Field[] keys) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<U> U[]toArray(U[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
store
-
errHandler
-
lock
-
keys
-
-
Constructor Details
-
DBCachedObjectStoreFoundKeysValueCollection
public DBCachedObjectStoreFoundKeysValueCollection(DBCachedObjectStore<T> store, ErrorHandler errHandler, ReadWriteLock lock, Field[] keys)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends DBAnnotatedObject>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T extends DBAnnotatedObject>
-
contains
- Specified by:
containsin interfaceCollection<T extends DBAnnotatedObject>
-
iterator
- Specified by:
iteratorin interfaceCollection<T extends DBAnnotatedObject>- Specified by:
iteratorin interfaceIterable<T extends DBAnnotatedObject>
-
toArray
- Specified by:
toArrayin interfaceCollection<T extends DBAnnotatedObject>
-
toArray
public <U> U[] toArray(U[] a) - Specified by:
toArrayin interfaceCollection<T extends DBAnnotatedObject>
-
add
- Specified by:
addin interfaceCollection<T extends DBAnnotatedObject>
-
remove
- Specified by:
removein interfaceCollection<T extends DBAnnotatedObject>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends DBAnnotatedObject>
-
addAll
- Specified by:
addAllin interfaceCollection<T extends DBAnnotatedObject>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T extends DBAnnotatedObject>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T extends DBAnnotatedObject>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T extends DBAnnotatedObject>
-