toggle menu
DHIS2 Android SDK
1.11.1
androidJvm
switch theme
search in API
DHIS2 Android SDK
/
org.hisp.dhis.android.core.arch.helpers
/
Result
/
Failure
Failure
data
class
Failure
<
out
S
,
out
F
:
Throwable
>
(
val
failure
:
F
)
:
Result
<
S
,
F
>
Members
Constructors
Failure
Link copied to clipboard
constructor
(
failure
:
F
)
Properties
failure
Link copied to clipboard
val
failure
:
F
succeeded
Link copied to clipboard
val
succeeded
:
Boolean
Functions
flat
Map
Link copied to clipboard
inline
fun
<
T
>
flatMap
(
transform
:
(
value
:
S
)
->
Result
<
T
,
F
>
)
:
Result
<
T
,
F
>
fold
Link copied to clipboard
inline
fun
fold
(
onSuccess
:
(
S
)
->
Unit
,
onFailure
:
(
F
)
->
Unit
)
get
Or
Null
Link copied to clipboard
fun
getOrNull
(
)
:
S
?
get
Or
Throw
Link copied to clipboard
fun
getOrThrow
(
)
:
S
map
Link copied to clipboard
inline
fun
<
T
>
map
(
transform
:
(
value
:
S
)
->
T
)
:
Result
<
T
,
F
>