toggle menu
micro_utils.dokka
0.20.14
common
switch theme
search in API
micro_utils.dokka
/
dev.inmo.micro_utils.common
/
EitherSecond
Either
Second
@
Serializable
data
class
EitherSecond
<
T1
,
T2
>
(
val
t2
:
T2
)
:
Either
<
T1
,
T2
>
(
source
)
This type
Either
will always have not nullable
optionalT2
Members
Members & Extensions
Constructors
Either
Second
Link copied to clipboard
constructor
(
t2
:
T2
)
Properties
optional
T1
Link copied to clipboard
open
override
val
optionalT1
:
Optional
<
T1
>
optional
T2
Link copied to clipboard
open
override
val
optionalT2
:
Optional
<
T2
>
t1Or
Null
Link copied to clipboard
open
val
t1OrNull
:
T1
?
t2
Link copied to clipboard
val
t2
:
T2
t2Or
Null
Link copied to clipboard
open
val
t2OrNull
:
T2
?
Functions
map
On
First
Link copied to clipboard
inline
fun
<
T1
,
R
>
Either
<
T1
,
*
>
.
mapOnFirst
(
block
:
(
T1
)
->
R
)
:
R
?
map
On
Second
Link copied to clipboard
inline
fun
<
T2
,
R
>
Either
<
*
,
T2
>
.
mapOnSecond
(
block
:
(
T2
)
->
R
)
:
R
?