接口 Lazy<T>
- 类型参数:
T
- The type of the value
- 所有超级接口:
Supplier<T>
- 所有已知子接口:
ClearableLazy<T>
Proxy object for a value that is calculated on first access
-
嵌套类概要
嵌套类修饰符和类型接口说明static final class
Thread-safe implementation.static final class
Non-thread-safe implementation. -
方法概要
静态方法
-
方法详细资料
-
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.
-