Package de.hybris.platform.util
Class HybrisWeakReference
- java.lang.Object
-
- java.lang.ref.Reference<T>
-
- java.lang.ref.WeakReference
-
- de.hybris.platform.util.HybrisWeakReference
-
public class HybrisWeakReference extends java.lang.ref.WeakReferenceThis subclass of WeakReference does implement equals and hashCode so it can be used in sets. The hashCode is taken from the references Object at creation time so it is fixed. Equals compares the hashCode which is the hashCode of the referenced object.
-
-
Constructor Summary
Constructors Constructor Description HybrisWeakReference(java.lang.Object o)HybrisWeakReference(java.lang.Object o, java.lang.ref.ReferenceQueue queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()
-