Package ghidra.util.database
Class DBCachedObjectStoreValueCollection<T extends DBAnnotatedObject>
java.lang.Object
ghidra.util.database.DBCachedObjectStoreValueCollection<T>
- Type Parameters:
T- the type of objects in the store
- All Implemented Interfaces:
Iterable<T>,Collection<T>
- Direct Known Subclasses:
DBCachedObjectStoreValueSubCollection
public class DBCachedObjectStoreValueCollection<T extends DBAnnotatedObject>
extends Object
implements Collection<T>
This provides the implementation of
Map.values() for DBCachedObjectStore.asMap()-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DirectedIterator.Directionprotected final ErrorHandlerprotected final ReadWriteLockprotected final DBCachedObjectStore<T> -
Constructor Summary
ConstructorsConstructorDescriptionDBCachedObjectStoreValueCollection(DBCachedObjectStore<T> store, ErrorHandler errHandler, ReadWriteLock lock, DirectedIterator.Direction direction) -
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
-
direction
-
-
Constructor Details
-
DBCachedObjectStoreValueCollection
public DBCachedObjectStoreValueCollection(DBCachedObjectStore<T> store, ErrorHandler errHandler, ReadWriteLock lock, DirectedIterator.Direction direction)
-
-
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>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T extends DBAnnotatedObject>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T extends DBAnnotatedObject>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T extends DBAnnotatedObject>
-