Class WeakEntry<T>


public class WeakEntry<T> extends WeakObject<T>
A weak entry is a reference with an additional argument that can be inspected the referent is garbage collected. E.g. the action reference queue interprets the argument as a runnable to be executed.
See Also:
  • Field Details

    • arg

      protected Object arg
      Optional command argument.
  • Constructor Details

    • WeakEntry

      public WeakEntry(T object, Object arg)
      Construct a new reference.
      Parameters:
      object - Object to reference.
      arg - The argument.
    • WeakEntry

      public WeakEntry(T object, Object arg, ReferenceQueue<? super T> queue)
      Construct a WeakObject.
      Parameters:
      object - Object to reference.
      arg - The argument.
      queue - Reference queue.
  • Method Details

    • getArgument

      public Object getArgument()
      Get the argument.
      Returns:
      The argument.