类 Lazy.Concurrent<T>

java.lang.Object
net.minecraftforge.common.util.Lazy.Concurrent<T>
所有已实现的接口:
Supplier<T>, Lazy<T>
封闭接口:
Lazy<T>

public static final class Lazy.Concurrent<T> extends Object implements Lazy<T>
Thread-safe implementation.
  • 字段详细资料

    • lock

      private volatile Object lock
    • supplier

      private volatile Supplier<T> supplier
    • instance

      private volatile T instance
  • 构造器详细资料

    • Concurrent

      private Concurrent(Supplier<T> supplier)
  • 方法详细资料

    • get

      @Nullable public final T get()
      指定者:
      get 在接口中 Supplier<T>