Pedestal
Toggle table of contents
3.1.1
common
Platform filter
common
Switch theme
Search in API
Pedestal
Weak
/
opensavvy.pedestal.weak
/
getOrDefault
get
Or
Default
@
ExperimentalWeakApi
inline
fun
<
K
,
V
>
WeakMap
<
K
,
V
>
.
getOrDefault
(
key
:
K
,
defaultValue
:
V
)
:
V
(
source
)
Attempts to find the value associated with
key
, returning
defaultValue
if none is found.