toggle menu
vice-sources
0.9.7
common
switch theme
search in API
vice-sources
/
com.eygraber.vice.loadable
/
ViceLoadable
/
Loading
Loading
@
Immutable
data
class
Loading
<
T
>
(
val
value
:
T
)
:
ViceLoadable
<
T
>
Members
Members & Extensions
Constructors
Loading
Link copied to clipboard
constructor
(
value
:
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
open
override
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
>