Class Lazy<T>

java.lang.Object
me.qoomon.gitversioning.commons.Lazy<T>
All Implemented Interfaces:
Supplier<T>

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

    • Lazy

      public Lazy(Callable<T> initializer)
  • Method Details

    • get

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

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

      public static <T> Lazy<T> by(Callable<T> supplier)
    • get

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