micro_utils.dokka
0.9.5
android
common
jvm
micro_utils.dokka
/
dev.inmo.micro_utils.serialization.encapsulator
/
[common]Encapsulator
Encapsulator
common
data
class
Encapsulator
<
T
:
Any
>
(
klass
:
KClass
<
T
>
,
serializer
:
KSerializer
<
T
>
)
Content copied to clipboard
Functions
Properties
Extensions
Functions
encapsulate
Link copied to clipboard
common
fun
<
O
>
encapsulate
(
value
:
Any
,
callback
:
KSerializer
<
T
>
.
(
T
)
->
O
)
:
O
?
Content copied to clipboard
Properties
klass
Link copied to clipboard
common
val
klass
:
KClass
<
T
>
Content copied to clipboard
serializer
Link copied to clipboard
common
val
serializer
:
KSerializer
<
T
>
Content copied to clipboard
Extensions
try
Encode
Link copied to clipboard
android
common
jvm
fun
<
T
:
Any
>
Encapsulator
<
T
>
.
tryEncode
(
encoder
:
Encoder
,
value
:
Any
)
:
Unit
?
Content copied to clipboard
fun
<
T
:
Any
>
Encapsulator
<
T
>
.
tryEncode
(
encoder
:
Encoder
,
value
:
Any
)
:
Unit
?
Content copied to clipboard
fun
<
T
:
Any
>
Encapsulator
<
T
>
.
tryEncode
(
encoder
:
Encoder
,
value
:
Any
)
:
Unit
?
Content copied to clipboard