Interface AutoLoaded.LoadMethod<T>

Type Parameters:
T - The type of the wrapped value.
Enclosing class:
AutoLoaded<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface AutoLoaded.LoadMethod<T>
A method run during loading, used with a AutoLoaded wrapper.
Since:
1.8.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default Runnable
    bind(AutoLoaded<T> wrapper)
    Binds a wrapper to this method so that it may be called without passing it by value.
    void
    load(AutoLoaded<T> self)
    Runs loading logic.
  • Method Details

    • load

      void load(AutoLoaded<T> self)
      Runs loading logic.
      Parameters:
      self - The wrapper instance.
      Since:
      1.8.0
    • bind

      default Runnable bind(AutoLoaded<T> wrapper)
      Binds a wrapper to this method so that it may be called without passing it by value.
      Parameters:
      wrapper - The wrapper to bind.
      Returns:
      An aliased runnable.