Class Lazy.Fast<T>

java.lang.Object
net.minecraftforge.common.util.Lazy.Fast<T>
All Implemented Interfaces:
Supplier<T>, Lazy<T>
Enclosing interface:
Lazy<T>

public static final class Lazy.Fast<T> extends Object implements Lazy<T>
Non-thread-safe implementation.
  • Field Details

    • supplier

      private Supplier<T> supplier
    • instance

      private T instance
  • Constructor Details

    • Fast

      private Fast(Supplier<T> supplier)
  • Method Details

    • get

      @Nullable public final T get()
      Specified by:
      get in interface Supplier<T>