Interface Supplier<T>

  • Type Parameters:
    T - the type of values returned by this supplier


    public interface Supplier<T>
    Classes implementing this interface know how to supply a value.

    This is a functional interface intended to support lambda expressions in log4j 2.

    Implementors are free to cache values or return a new or distinct value each time the supplier is invoked.

    Since:
    2.4
    • Method Summary

      Modifier and Type Method and Description
      T get()
      Gets a value.
    • Method Detail

      • get

        T get()
        Gets a value.
        Returns:
        a value