kohii
1.4.0.2017001
kohii-core
/
kohii.v1.utils
/
Capsule
Capsule
open
class
Capsule
<
T
:
Any
,
in
A
>
(
creator
:
(
A
)
->
T
,
onCreate
:
(
T
)
->
Unit
=
{ if (it is Engine<*>) it.master.registerEngine(it) }
)
Content copied to clipboard
Singleton Holder
Constructors
Functions
Properties
Constructors
Capsule
Link copied to clipboard
fun
<
T
:
Any
,
in
A
>
Capsule
(
creator
:
(
A
)
->
T
,
onCreate
:
(
T
)
->
Unit
=
{ if (it is Engine<*>) it.master.registerEngine(it) }
)
Content copied to clipboard
Functions
get
Link copied to clipboard
fun
get
(
arg
:
A
)
:
T
Content copied to clipboard
Properties
creator
Link copied to clipboard
var
creator
:
(
A
)
->
T
?
Content copied to clipboard