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 TypeMethodDescriptionvoiddispose()Invoked byReferenceQueueConsumerfor removing the reference from the enclosing collection.Methods inherited from class org.apache.sis.util.collection.WeakEntry
count, lowerCapacityThreshold, rehash, removeFrom, upperCapacityThresholdMethods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
-
Constructor Details
-
Entry
Entry(E obj, WeakHashSet<E>.Entry next, int hash) Constructs a new weak reference.
-
-
Method Details
-
dispose
public void dispose()Invoked byReferenceQueueConsumerfor removing the reference from the enclosing collection.
-