T - The type of the cached valuepublic class Memoizer<T> extends Object
Callable is called once
when the value is first requested; the same value is return for all following
invocations of get().public T get() throws RuntimeException
Callable.call() is declard to throw arbitrary exceptions. All
exceptions are caught and wrapped into a RuntimeException which
is then thrown from this method.
RuntimeException - if the callable throws an exceptionCopyright © 2026. All rights reserved.