Package org.apache.sis.util.collection
Class WeakHashSet.Entry
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.WeakReference<E>
org.apache.sis.util.collection.WeakEntry<E>
org.apache.sis.util.collection.WeakHashSet.Entry
- All Implemented Interfaces:
Disposable
- Enclosing class:
- WeakHashSet<E>
A weak reference to an element. This is an element in a linked list.
When the reference is disposed, it is removed from the enclosing set.
-
Field Summary
Fields inherited from class org.apache.sis.util.collection.WeakEntry
hash, HASH_MASK, MIN_CAPACITY, next, REHASH_DELAY
-
Constructor Summary
ConstructorsConstructorDescriptionEntry
(E obj, WeakHashSet<E>.Entry next, int hash) Constructs a new weak reference. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Invoked byReferenceQueueConsumer
for removing the reference from the enclosing collection.Methods inherited from class org.apache.sis.util.collection.WeakEntry
count, lowerCapacityThreshold, rehash, removeFrom, upperCapacityThreshold
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, get, isEnqueued, reachabilityFence, refersTo
-
Constructor Details
-
Entry
Entry(E obj, WeakHashSet<E>.Entry next, int hash) Constructs a new weak reference.
-
-
Method Details
-
dispose
public void dispose()Invoked byReferenceQueueConsumer
for removing the reference from the enclosing collection.
-