Class HardSimpleReference<T>

java.lang.Object
io.deephaven.base.reference.HardSimpleReference<T>
All Implemented Interfaces:
SimpleReference<T>

public class HardSimpleReference<T> extends Object implements SimpleReference<T>
Strongly-held SimpleReference.
  • Constructor Details

    • HardSimpleReference

      public HardSimpleReference(T referent)
  • Method Details

    • get

      public final T get()
      Description copied from interface: SimpleReference
      Retrieve the current referent.
      Specified by:
      get in interface SimpleReference<T>
      Returns:
      The current referent, which may be null.
    • clear

      public final void clear()
      Description copied from interface: SimpleReference
      Clear the referent.
      Specified by:
      clear in interface SimpleReference<T>