Class TransparenteSoftReference<T>
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.SoftReference<T>
org.nuiton.util.TransparenteSoftReference<T>
Cette classe etant SoftReference et surcharge les méthodes equals et
hashCode pour que ces méthodes retournes les mêmes résultat que les objets
contenu.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDOCUMENTME Constructor for the TransparenteSoftReference objectTransparenteSoftReference(T o, boolean objectToStringUsed) TransparenteSoftReference(T o, ReferenceQueue<? super T> queue) TransparenteSoftReference(T o, ReferenceQueue<? super T> queue, boolean objectToStringUsed) -
Method Summary
Methods inherited from class SoftReference
getMethods inherited from class Reference
clear, clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
hash
protected int hash -
toString
-
-
Constructor Details
-
TransparenteSoftReference
DOCUMENTME Constructor for the TransparenteSoftReference object- Parameters:
o- DOCUMENTME Description of the Parameter
-
TransparenteSoftReference
-
TransparenteSoftReference
-
TransparenteSoftReference
-
-
Method Details
-
init
On conserve le hash pour que la Reference puisse encore se faire passer pour l'objet alors que celui-ci a disparu de la memoire- Parameters:
o- TODOobjectToStringUsed- TODO
-
equals
-
hashCode
-
toString
-