| Package | Description |
|---|---|
| org.apache.ratis.util |
| Modifier and Type | Method and Description |
|---|---|
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–2022 The Apache Software Foundation. All rights reserved.