Interface SimpleReference<T>

All Known Subinterfaces:
CleanupReference<T>
All Known Implementing Classes:
DowngradableReference, HardSimpleReference, PooledObjectReference, SwappableDelegatingReference, WeakCleanupReference, WeakReferenceWrapper, WeakSimpleReference

public interface SimpleReference<T>
Simple reference interface used by CachedReference.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear the referent.
    get()
    Retrieve the current referent.
  • Method Details

    • get

      T get()
      Retrieve the current referent.
      Returns:
      The current referent, which may be null.
    • clear

      void clear()
      Clear the referent.