Package panda.std

Class Lazy<T>

java.lang.Object
panda.std.Lazy<T>
All Implemented Interfaces:
Supplier<T>

public class Lazy<T> extends Object implements Supplier<T>
  • Constructor Details

    • Lazy

      public Lazy(T value)
    • Lazy

      public Lazy(Supplier<T> supplier)
  • Method Details

    • ofRunnable

      public static Lazy<Void> ofRunnable(Runnable runnable)
    • get

      public T get()
      Specified by:
      get in interface Supplier<T>
    • isInitialized

      public boolean isInitialized()