matrix-sdk-android
1.6.10
matrix-sdk-android
/
org.matrix.android.sdk.api.util
/
Optional
Optional
data
class
Optional
<
T
:
Any
>
(
value
:
T
?
)
Content copied to clipboard
Types
Constructors
Functions
Constructors
Optional
Link copied to clipboard
fun
<
T
:
Any
>
Optional
(
value
:
T
?
)
Content copied to clipboard
Types
Companion
Link copied to clipboard
object
Companion
Content copied to clipboard
Functions
get
Link copied to clipboard
fun
get
(
)
:
T
Content copied to clipboard
get
Or
Null
Link copied to clipboard
fun
getOrNull
(
)
:
T
?
Content copied to clipboard
has
Value
Link copied to clipboard
fun
hasValue
(
)
:
Boolean
Content copied to clipboard
map
Link copied to clipboard
fun
<
U
:
Any
>
map
(
fn
:
(
T
)
->
U
?
)
:
Optional
<
U
>
Content copied to clipboard
or
Else
Link copied to clipboard
fun
orElse
(
fn
:
(
)
->
T
)
:
T
Content copied to clipboard
or
Null
Link copied to clipboard
fun
orNull
(
)
:
T
?
Content copied to clipboard