Class LazyValue<T>

  • Type Parameters:
    T - The type of object referenced

    public class LazyValue<T>
    extends Object
    A lazily accessible object reference. Useful for cases where final references are needed (anon inner class, lambdas, etc).
    • Field Detail

      • NULL

        public static final Object NULL
    • Constructor Detail

      • LazyValue

        public LazyValue​(Supplier<T> supplier)
    • Method Detail

      • getValue

        public T getValue()