Class WeakValueHashMap.Entry
java.lang.Object
java.lang.ref.Reference<V>
java.lang.ref.WeakReference<V>
org.apache.sis.util.collection.WeakEntry<V>
org.apache.sis.util.collection.WeakValueHashMap.Entry
- All Implemented Interfaces:
Map.Entry<K,V>, Disposable
- Enclosing class:
WeakValueHashMap<K,V>
An entry in the
WeakValueHashMap. This is a weak reference
to a value together with a strong reference to a key.- Since:
- 0.3
- Version:
- 1.2
-
Field Summary
FieldsFields inherited from class WeakEntry
hash, HASH_MASK, MIN_CAPACITY, next, REHASH_DELAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Invoked byReferenceQueueConsumerfor removing the reference from the enclosing collection.booleanCompares the specified object with this entry for equality.getKey()Returns the key corresponding to this entry.getValue()Returns the value corresponding to this entry.inthashCode()Returns the hash code value for this map entry.Replaces the value corresponding in this entry with the specified value.Methods inherited from class WeakEntry
count, lowerCapacityThreshold, rehash, removeFrom, upperCapacityThresholdMethods inherited from class Reference
clear, enqueue, get, isEnqueued
-
Field Details
-
key
The key.
-
-
Constructor Details
-
Entry
-
-
Method Details
-
getKey
-
getValue
-
setValue
-
dispose
public void dispose()Invoked byReferenceQueueConsumerfor removing the reference from the enclosing collection.- Specified by:
disposein interfaceDisposable
-
equals
-
hashCode
-