Interface NonNullLazy<T>
- Type Parameters:
 T- The type of the value
- All Superinterfaces:
 NonNullSupplier<T>
Deprecated.
Proxy object for a value that is calculated on first access.
 Same as 
Lazy, but with a nonnull contract.- 
Method Summary
Modifier and TypeMethodDescriptionstatic <T> NonNullLazy<T>concurrentOf(NonNullSupplier<T> supplier) Deprecated.Constructs a thread-safe lazy-initialized objectstatic <T> NonNullLazy<T>of(NonNullSupplier<T> supplier) Deprecated.Constructs a lazy-initialized objectMethods inherited from interface net.neoforged.neoforge.common.util.NonNullSupplier
get 
- 
Method Details
- 
of
Deprecated.Constructs a lazy-initialized object- Parameters:
 supplier- The supplier for the value, to be called the first time the value is needed.
 - 
concurrentOf
Deprecated.Constructs a thread-safe lazy-initialized object- Parameters:
 supplier- The supplier for the value, to be called the first time the value is needed.
 
 - 
 
Lazy