toggle menu
vice-sources
0.9.7
common
switch theme
search in API
vice-sources
/
com.eygraber.vice.loadable
/
ViceLoadable
Vice
Loadable
@
Immutable
sealed
interface
ViceLoadable
<
T
>
Inheritors
Loading
Loaded
Members
Members & Extensions
Types
Loaded
Link copied to clipboard
@
Immutable
data
class
Loaded
<
T
>
(
val
value
:
T
)
:
ViceLoadable
<
T
>
Loading
Link copied to clipboard
@
Immutable
data
class
Loading
<
T
>
(
val
value
:
T
)
:
ViceLoadable
<
T
>
Properties
is
Loaded
Link copied to clipboard
val
ViceLoadable
<
*
>
.
isLoaded
:
Boolean
is
Loading
Link copied to clipboard
val
ViceLoadable
<
*
>
.
isLoading
:
Boolean
is
Not
Loaded
Link copied to clipboard
val
ViceLoadable
<
*
>
.
isNotLoaded
:
Boolean
is
Not
Loading
Link copied to clipboard
val
ViceLoadable
<
*
>
.
isNotLoading
:
Boolean
loaded
Value
Or
Null
Link copied to clipboard
val
<
T
>
ViceLoadable
<
T
>
.
loadedValueOrNull
:
T
?
value
Link copied to clipboard
abstract
val
value
:
T
Functions
map
Link copied to clipboard
inline
fun
<
T
,
R
>
ViceLoadable
<
T
>
.
map
(
mapper
:
(
T
)
->
ViceLoadable
<
R
>
)
:
ViceLoadable
<
R
>
map
Value
Link copied to clipboard
inline
fun
<
T
,
R
>
ViceLoadable
<
T
>
.
mapValue
(
mapper
:
(
T
)
->
R
)
:
ViceLoadable
<
R
>