Interface LazyReferencing<T>

  • All Superinterfaces:
    Referencing<T>
    All Known Implementing Classes:
    Lazy

    public interface LazyReferencing<T>
    extends Referencing<T>
    • Method Summary

      Modifier and Type Method Description
      T get()
      Returns the referenced object, loading it if required.
      T peek()
      Returns the local reference without loading the referenced object if it is not present.
    • Method Detail

      • get

        T get()
        Returns the referenced object, loading it if required.
        Specified by:
        get in interface Referencing<T>
        Returns:
        the lazily loaded referenced object.
      • peek

        T peek()
        Returns the local reference without loading the referenced object if it is not present.
        Returns:
        the currently present reference.