kounter
1.4.3
kounter
/
com.github.pgreze.kollections
/
MapWithDefault
Map
With
Default
interface
MapWithDefault
<
K
,
V
>
:
Map
<
K
,
V
>
Content copied to clipboard
Map
specialization allowing to safely use
get
(and its short form the [] operator).
Functions
Properties
Inheritors
Functions
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
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
MutableMapWithDefault
Link copied to clipboard
MutableCounter
Link copied to clipboard