protocol
4.0.3
common
protocol
/
dev.arbjerg.lavalink.protocol.v4
/
Omissible
Omissible
@
Serializable
(
with
=
OmissableSerializer::class
)
interface
Omissible
<
out
T
>
Inheritors
Present
Omitted
Members
Members & Extensions
Types
Companion
Link copied to clipboard
object
Companion
Omitted
Link copied to clipboard
class
Omitted
<
out
T
>
:
Omissible
<
T
>
Present
Link copied to clipboard
@
JvmInline
value
class
Present
<
out
T
>
(
val
value
:
T
)
:
Omissible
<
T
>
Functions
if
Present
Link copied to clipboard
inline
fun
<
T
,
R
>
Omissible
<
T
>
.
ifPresent
(
function
:
(
T
)
->
R
)
:
R
?
if
Present
And
Not
Null
Link copied to clipboard
inline
fun
<
T
,
R
>
Omissible
<
T
?
>
.
ifPresentAndNotNull
(
function
:
(
T
)
->
R
)
:
R
?
is
Omitted
Link copied to clipboard
fun
<
T
>
Omissible
<
T
>
.
isOmitted
(
)
:
Boolean
is
Present
Link copied to clipboard
fun
<
T
>
Omissible
<
T
>
.
isPresent
(
)
:
Boolean
map
Link copied to clipboard
inline
fun
<
T
,
R
>
Omissible
<
T
>
.
map
(
mapper
:
(
T
)
->
R
)
:
Omissible
<
R
>
take
If
Present
Link copied to clipboard
fun
<
T
>
Omissible
<
T
>
.
takeIfPresent
(
predicate
:
(
T
)
->
Boolean
=
{ true }
)
:
T
?