Class ParameterizedLazy
-
- All Implemented Interfaces:
-
kotlin.Function,kotlin.coroutines.SuspendFunction1
public final class ParameterizedLazy<T extends Object, R extends Object> implements SuspendFunction1<T, R>
A lazy delegate which takes a parameter and provides a value based on it. The value is calculated only once and stored in a map.
-
-
Constructor Summary
Constructors Constructor Description ParameterizedLazy(SuspendFunction1<T, R> initializer)
-
Method Summary
-
-
Constructor Detail
-
ParameterizedLazy
ParameterizedLazy(SuspendFunction1<T, R> initializer)
- Parameters:
initializer- A function that creates a new value based on the parameter.
-
-
-
-