Interface Provider<T>

Type Parameters:
T - the provided type
All Known Implementing Classes:
FactoryProvider, SingletonProvider
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 interface Provider<T>
The core abstraction: supplies an instance of T on demand.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Returns a provided instance of T.
  • Method Details

    • get

      T get()
      Returns a provided instance of T.
      Returns:
      a provided instance of T