Interface Supplier<T>

All Superinterfaces:
Supplier<T>

@PublicSpi public interface Supplier<T> extends Supplier<T>
Supplier for a single object
Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Produce an object.
  • Method Details

    • get

      T get()
      Produce an object. Retrieve an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.
      Specified by:
      get in interface Supplier<T>
      Returns:
      the product, may be null if there are no objects available.