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
/
Success
Success
data
class
Success
<
out
S
,
out
F
:
Throwable
>
(
val
value
:
S
)
:
Result
<
S
,
F
>
Members
Constructors
Success
Link copied to clipboard
constructor
(
value
:
S
)
Properties
succeeded
Link copied to clipboard
val
succeeded
:
Boolean
value
Link copied to clipboard
val
value
:
S
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
>