public class LazyLoader<T> extends Object implements Supplier<T>, Serializable
| Modifier and Type | Method and Description |
|---|---|
T |
get()
返回值。值将在第一次调用时计算
|
static <T> LazyLoader<T> |
of(Supplier<T> supplier)
创建惰性的新实例
|
Copyright © 2022. All rights reserved.