Module methanol

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>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      static <T> Lazy<T> of​(java.util.function.Supplier<T> factory)  
      • Methods inherited from class java.lang.Object

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

      • get

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

        public static <T> Lazy<T> of​(java.util.function.Supplier<T> factory)