Class Lazy<T>

  • All Implemented Interfaces:
    java.util.function.Supplier<T>

    public final class Lazy<T>
    extends java.lang.Object
    implements java.util.function.Supplier<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      Lazy​(java.util.concurrent.Callable<T> initializer)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> Lazy<T> by​(java.util.concurrent.Callable<T> supplier)  
      T get()  
      static <V> V get​(Lazy<V> value)  
      static <T> Lazy<T> of​(T value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Lazy

        public Lazy​(java.util.concurrent.Callable<T> initializer)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface java.util.function.Supplier<T>
      • of

        public static <T> Lazy<T> of​(T value)
      • by

        public static <T> Lazy<T> by​(java.util.concurrent.Callable<T> supplier)
      • get

        public static <V> V get​(Lazy<V> value)