sdk-common / com.tomtom.online.sdk.common.functional / Supplier / memoized

memoized

open fun memoized(): Supplier<R>!

Returns memoizing version of this supplier, which computes the return value only once. On subsequent calls the memoized value is returned.

Return
Supplier<R>!: result of calling #get() if run for the first time, memoized result otherwise.