Interface Supplier<T>


@GwtCompatible @Deprecated(since="2022-12-01") public interface Supplier<T>
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
A class that can supply objects of a single type. Semantically, this could be a factory, generator, builder, closure, or something else entirely. No guarantees are implied by this interface.
Since:
2.0 (imported from Google Collections Library)
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Deprecated.
    Retrieves an instance of the appropriate type.
  • Method Details

    • get

      T get()
      Deprecated.
      Retrieves an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.
      Returns:
      an instance of the appropriate type