Class LazySupplier


  • public abstract class LazySupplier
    extends Object
    Caching wrapper with lazy init for a Supplier
    Author:
    vasily@wavefront.com
    • Constructor Detail

      • LazySupplier

        public LazySupplier()
    • Method Detail

      • of

        public static <T> Supplier<T> of​(Supplier<T> supplier)
        Lazy-initialize a Supplier
        Parameters:
        supplier - Supplier to lazy-initialize
        Returns:
        lazy wrapped supplier