toggle menu
Affogato
1.10.2
jvm
switch theme
search in API
affogato-structure
/
com.parsuomash.affogato.structure.lazy_object
/
SingletonHolder8
Singleton
Holder8
open
class
SingletonHolder8
<
R
:
Any
,
in
T1
,
in
T2
,
in
T3
,
in
T4
,
in
T5
,
in
T6
,
in
T7
,
in
T8
>
(
creator
:
(
T1
,
T2
,
T3
,
T4
,
T5
,
T6
,
T7
,
T8
)
->
R
)
:
InstanceHolder
<
R
>
Create lazy singleton.
Since
1.4.0
See also
Singleton
Holder
Members
Constructors
Singleton
Holder8
Link copied to clipboard
constructor
(
creator
:
(
T1
,
T2
,
T3
,
T4
,
T5
,
T6
,
T7
,
T8
)
->
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
,
arg3
:
T3
,
arg4
:
T4
,
arg5
:
T5
,
arg6
:
T6
,
arg7
:
T7
,
arg8
:
T8
)
:
R