Uses of Interface
org.apache.logging.log4j.util.Lazy

Packages that use Lazy
Package
Description
Internal utility classes for the Log4j 2 API.
  • Uses of Lazy in org.apache.logging.log4j.util

    Methods in org.apache.logging.log4j.util that return Lazy
    Modifier and Type
    Method
    Description
    static <T> Lazy<T>
    Lazy.lazy(Supplier<T> supplier)
    Creates a strict lazy value using the provided Supplier.
    default <R> Lazy<R>
    Lazy.map(Function<? super T,? extends R> function)
    Creates a new lazy value derived from this lazy value using the provided value mapping function.
    static <T> Lazy<T>
    Lazy.pure(Supplier<T> supplier)
    Creates a pure lazy value using the provided Supplier to initialize the value.
    static <T> Lazy<T>
    Lazy.value(T value)
    Creates a lazy value using the provided constant value.
    static <T> Lazy<T>
    Lazy.weak(T value)
    Creates a lazy value using a weak reference to the provided value.