SingletonHolder

open class SingletonHolder<out T : Any, in A>(creator: (A) -> T)

Inheritors

Constructors

Link copied to clipboard
constructor(creator: (A) -> T)

Properties

Link copied to clipboard
private var creator: (A) -> T?
Link copied to clipboard
private var instance: T?

Functions

Link copied to clipboard
fun getInstance(arg: A): T