Class ComparableWeakReference<T>

  • Type Parameters:
    T - is the type of the referenced object.
    All Implemented Interfaces:
    Comparable<Object>

    public class ComparableWeakReference<T>
    extends WeakReference<T>
    implements Comparable<Object>
    This class is a WeakReference that allows to be compared on its pointed value.
    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 Detail

      • ComparableWeakReference

        public ComparableWeakReference​(T referent)
        Constructor.
        Parameters:
        referent - is the referenced object.
      • ComparableWeakReference

        public ComparableWeakReference​(T referent,
                                       ReferenceQueue<? super T> queue)
        Constructor.
        Parameters:
        referent - is the referenced object.
        queue - is the object that will be notified of the memory released for the referenced object.