toggle menu
Affogato
1.10.2
jvm
switch theme
search in API
affogato-structure
/
com.parsuomash.affogato.structure.lazy_object
/
InstanceHolder
Instance
Holder
abstract
class
InstanceHolder
<
T
>
Instance holder store an instance of class to create object.
Since
1.4.0
Inheritors
SingletonHolder
SingletonHolder2
SingletonHolder3
SingletonHolder4
SingletonHolder5
SingletonHolder6
SingletonHolder7
SingletonHolder8
SingletonHolder9
SingletonHolder10
Members
Constructors
Instance
Holder
Link copied to clipboard
constructor
(
)
Properties
_instance
Link copied to clipboard
@
Volatile
var
_instance
:
T
?
Functions
get
Instance
Link copied to clipboard
protected
inline
fun
getInstance
(
creator
:
(
)
->
T
)
:
T