Interface CachingGeneratingDelegateFactory.DelegateWrapperFactory<T>

Type Parameters:
T - type of the wrapper which this factory produces
Enclosing class:
CachingGeneratingDelegateFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface protected static interface CachingGeneratingDelegateFactory.DelegateWrapperFactory<T>
Delegate-wrapper factory responsible for creating delegate wrappers based on the specified supplier.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(@NotNull Supplier<T> supplier)
    Creates a new delegate-wrapper based on the given supplier.
  • Method Details

    • create

      @NotNull T create(@NotNull @NotNull Supplier<T> supplier)
      Creates a new delegate-wrapper based on the given supplier.
      Parameters:
      supplier - supplier used to create the object as specified by DelegateFactory.createWrapper(Class, Supplier)
      Returns:
      delegate wrapper created for the given supplier