toggle menu
Affogato
1.10.2
jvm
switch theme
search in API
affogato-structure
/
com.parsuomash.affogato.structure.lazy_object
/
SingletonHolder2
Singleton
Holder2
open
class
SingletonHolder2
<
R
:
Any
,
in
T1
,
in
T2
>
(
creator
:
(
T1
,
T2
)
->
R
)
:
InstanceHolder
<
R
>
Create lazy singleton.
Since
1.4.0
See also
Singleton
Holder
Members
Constructors
Singleton
Holder2
Link copied to clipboard
constructor
(
creator
:
(
T1
,
T2
)
->
R
)
Properties
_instance
Link copied to clipboard
@
Volatile
var
_instance
:
R
?
Functions
get
Instance
Link copied to clipboard
protected
inline
fun
getInstance
(
creator
:
(
)
->
R
)
:
R
invoke
Link copied to clipboard
operator
fun
invoke
(
arg1
:
T1
,
arg2
:
T2
)
:
R