kounter
1.4.3
kounter
/
com.github.pgreze.kollections
/
MutableMapWithDefault
Mutable
Map
With
Default
interface
MutableMapWithDefault
<
K
,
V
>
:
MapWithDefault
<
K
,
V
>
,
MutableMap
<
K
,
V
>
Content copied to clipboard
Mutable alternative of
MapWithDefault
.
Functions
Properties
Inheritors
Functions
clear
Link copied to clipboard
abstract
fun
clear
(
)
Content copied to clipboard
compute
Link copied to clipboard
open
fun
compute
(
p0
:
K
,
p1
:
BiFunction
<
in
K
,
in
V
?
,
out
V
?
>
)
:
V
?
Content copied to clipboard
compute
If
Absent
Link copied to clipboard
open
fun
computeIfAbsent
(
p0
:
K
,
p1
:
Function
<
in
K
,
out
V
>
)
:
V
Content copied to clipboard
compute
If
Present
Link copied to clipboard
open
fun
computeIfPresent
(
p0
:
K
,
p1
:
BiFunction
<
in
K
,
in
V
,
out
V
?
>
)
:
V
?
Content copied to clipboard
contains
Key
Link copied to clipboard
abstract
fun
containsKey
(
key
:
K
)
:
Boolean
Content copied to clipboard
contains
Value
Link copied to clipboard
abstract
fun
containsValue
(
value
:
V
)
:
Boolean
Content copied to clipboard
for
Each
Link copied to clipboard
open
fun
forEach
(
p0
:
BiConsumer
<
in
K
,
in
V
>
)
Content copied to clipboard
get
Link copied to clipboard
abstract
operator override
fun
get
(
key
:
K
)
:
V
Content copied to clipboard
get
Or
Default
Link copied to clipboard
open
fun
getOrDefault
(
key
:
K
,
defaultValue
:
V
)
:
V
Content copied to clipboard
is
Empty
Link copied to clipboard
abstract
fun
isEmpty
(
)
:
Boolean
Content copied to clipboard
merge
Link copied to clipboard
open
fun
merge
(
p0
:
K
,
p1
:
V
,
p2
:
BiFunction
<
in
V
,
in
V
,
out
V
?
>
)
:
V
?
Content copied to clipboard
put
Link copied to clipboard
abstract
fun
put
(
key
:
K
,
value
:
V
)
:
V
?
Content copied to clipboard
put
All
Link copied to clipboard
abstract
fun
putAll
(
from
:
Map
<
out
K
,
V
>
)
Content copied to clipboard
put
If
Absent
Link copied to clipboard
open
fun
putIfAbsent
(
p0
:
K
,
p1
:
V
)
:
V
?
Content copied to clipboard
remove
Link copied to clipboard
abstract
fun
remove
(
key
:
K
)
:
V
?
Content copied to clipboard
open
fun
remove
(
key
:
K
,
value
:
V
)
:
Boolean
Content copied to clipboard
replace
Link copied to clipboard
open
fun
replace
(
p0
:
K
,
p1
:
V
)
:
V
?
Content copied to clipboard
open
fun
replace
(
p0
:
K
,
p1
:
V
,
p2
:
V
)
:
Boolean
Content copied to clipboard
replace
All
Link copied to clipboard
open
fun
replaceAll
(
p0
:
BiFunction
<
in
K
,
in
V
,
out
V
>
)
Content copied to clipboard
Properties
entries
Link copied to clipboard
abstract
val
entries
:
Set
<
Map.Entry
<
K
,
V
>
>
Content copied to clipboard
keys
Link copied to clipboard
abstract
val
keys
:
Set
<
K
>
Content copied to clipboard
size
Link copied to clipboard
abstract
val
size
:
Int
Content copied to clipboard
values
Link copied to clipboard
abstract
val
values
:
Collection
<
V
>
Content copied to clipboard
Inheritors
MutableCounter
Link copied to clipboard