接口 NonNullLazy<T>
- 类型参数:
T
- The type of the value
- 所有超级接口:
NonNullSupplier<T>
Proxy object for a value that is calculated on first access.
Same as
Lazy
, but with a nonnull contract.-
方法概要
静态方法修饰符和类型方法说明static <T> NonNullLazy
<T> concurrentOf
(@NotNull NonNullSupplier<T> supplier) Constructs a thread-safe lazy-initialized objectstatic <T> NonNullLazy
<T> of
(@NotNull NonNullSupplier<T> supplier) Constructs a lazy-initialized object从接口继承的方法 net.minecraftforge.common.util.NonNullSupplier
get
-
方法详细资料
-
of
Constructs a lazy-initialized object- 参数:
supplier
- The supplier for the value, to be called the first time the value is needed.
-
concurrentOf
Constructs a thread-safe lazy-initialized object- 参数:
supplier
- The supplier for the value, to be called the first time the value is needed.
-