Package org.arakhne.afc.references
Class AbstractReferencedValueMap.SoftReferencedValue<VKT,VVT>
- java.lang.Object
-
- java.lang.ref.Reference<T>
-
- java.lang.ref.SoftReference<VVT>
-
- org.arakhne.afc.references.AbstractReferencedValueMap.SoftReferencedValue<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.SoftReferencedValue<VKT,VVT> extends SoftReference<VVT> implements AbstractReferencedValueMap.ReferencableValue<VKT,VVT>
Value stored in aAbstractReferencedValueMapinside aSoftReference.- 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 SoftReferencedValue(VKT key, VVT value, ReferenceQueue<VVT> queue)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)VKTgetKey()VVTgetValue()inthashCode()VVTsetValue(VVT value)StringtoString()-
Methods inherited from class java.lang.ref.SoftReference
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
-
SoftReferencedValue
public SoftReferencedValue(VKT key, VVT value, ReferenceQueue<VVT> queue)
Constructor.- Parameters:
key- is the key.value- is the value.queue- is the memory-release listener.
-
-