Package org.arakhne.afc.references
Class AbstractReferencedValueMap.PhantomReferencedValue<VKT,VVT>
- java.lang.Object
-
- java.lang.ref.Reference<T>
-
- java.lang.ref.PhantomReference<VVT>
-
- org.arakhne.afc.references.AbstractReferencedValueMap.PhantomReferencedValue<VKT,VVT>
-
- Type Parameters:
VKT
- is the type of the key associated to the value.VVT
- is the type of the value.
- All Implemented Interfaces:
Map.Entry<VKT,VVT>
,AbstractReferencedValueMap.ReferencableValue<VKT,VVT>
- Enclosing class:
- AbstractReferencedValueMap<K,V>
protected static class AbstractReferencedValueMap.PhantomReferencedValue<VKT,VVT> extends PhantomReference<VVT> implements AbstractReferencedValueMap.ReferencableValue<VKT,VVT>
Value stored in aAbstractReferencedValueMap
inside aPhantomReference
.- Version:
- 17.0 2020-01-04 14:41:38
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- references
-
-
Constructor Summary
Constructors Constructor Description PhantomReferencedValue(VKT key, VVT value, ReferenceQueue<VVT> queue)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
VKT
getKey()
VVT
getValue()
int
hashCode()
VVT
setValue(VVT value)
String
toString()
-
Methods inherited from class java.lang.ref.PhantomReference
get
-
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.references.AbstractReferencedValueMap.ReferencableValue
clear, enqueue, get, isEnqueued
-
-
-
-
Constructor Detail
-
PhantomReferencedValue
public PhantomReferencedValue(VKT key, VVT value, ReferenceQueue<VVT> queue)
Constructor.- Parameters:
key
- is the key.value
- is the value.queue
- is the memory-release listener.
-
-