Class DatabaseRef<T extends NdNode>
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.DatabaseRef<T>
- All Implemented Interfaces:
Supplier<T>
Holds a reference to a database entity that may be retained across read locks. In normal circumstances, it
is unsafe to retain a database address after a read lock is released since the object pointed to at that
address may have been deleted in the meantime. This class addresses this problem by remembering both the
address itself and enough information to determine whether that address is invalid and search for an
equivalent object if the original is lost.
-
Constructor Summary
ConstructorDescriptionDatabaseRef(Nd nd, Supplier<T> searchFunction)
Constructs a newDatabaseRef
that will search for its target using the given search function.DatabaseRef(Nd nd, Supplier<T> searchFunction, T initialResult)
Constructs a newDatabaseRef
that will search for its target using the given search function. -
Method Summary
-
Constructor Details
-
DatabaseRef
Constructs a newDatabaseRef
that will search for its target using the given search function. -
DatabaseRef
Constructs a newDatabaseRef
that will search for its target using the given search function.
-
-
Method Details