Module dagger

Class ProviderOfLazy<T>

  • All Implemented Interfaces:
    jakarta.inject.Provider<Lazy<T>>

    public final class ProviderOfLazy<T>
    extends java.lang.Object
    implements jakarta.inject.Provider<Lazy<T>>
    A Provider of Lazy instances that each delegate to a given Provider.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> jakarta.inject.Provider<Lazy<T>> create​(jakarta.inject.Provider<T> provider)
      Creates a new Provider<Lazy<T>> that decorates the given Provider.
      Lazy<T> get()
      Returns a new instance of Lazy<T>, which calls Provider.get() at most once on the Provider held by this object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        public Lazy<T> get()
        Returns a new instance of Lazy<T>, which calls Provider.get() at most once on the Provider held by this object.
        Specified by:
        get in interface jakarta.inject.Provider<T>
      • create

        public static <T> jakarta.inject.Provider<Lazy<T>> create​(jakarta.inject.Provider<T> provider)
        Creates a new Provider<Lazy<T>> that decorates the given Provider.
        See Also:
        get()