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.
A method run during loading, used with a
AutoLoaded wrapper.- Since:
- 1.8.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault Runnablebind(AutoLoaded<T> wrapper) Binds a wrapper to this method so that it may be called without passing it by value.voidload(AutoLoaded<T> self) Runs loading logic.
-
Method Details
-
load
Runs loading logic.- Parameters:
self- The wrapper instance.- Since:
- 1.8.0
-
bind
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.
-