Class Lazy<T>

java.lang.Object
com.pixelmonmod.api.Lazy<T>

public class Lazy<T> extends Object
  • Method Details

    • of

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

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

      public static <T> Lazy<T> of(Supplier<T> provider)
    • get

      public T get()
    • ifPresent

      public void ifPresent(Consumer<T> consumer)
    • map

      public <R> Lazy<R> map(Function<T,R> mapper)
    • orElse

      public T orElse(T elseValue)