| 程序包 | 说明 |
|---|---|
| org.apache.ratis.util |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> MemoizedSupplier<T> |
JavaUtils.memoize(Supplier<T> initializer)
Create a memoized supplier which gets a value by invoking the initializer once
and then keeps returning the same value as its supplied results.
|
static <T> MemoizedSupplier<T> |
MemoizedSupplier.valueOf(Supplier<T> supplier) |
Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.