toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.datastructure
/
CustomHashMap
Custom
Hash
Map
open
class
CustomHashMap
<
K
,
V
>
(
val
hasher
:
(
key
:
K
)
->
Int
,
val
equalKey
:
(
a
:
K
,
b
:
K
)
->
Boolean
,
val
equalValue
:
(
a
:
V
,
b
:
V
)
->
Boolean
,
val
initialCapacity
:
Int
=
16
)
:
MutableMap
<
K
,
V
>
Inheritors
SlowIdentityHashMap
Members
Members & Extensions
Constructors
Custom
Hash
Map
Link copied to clipboard
constructor
(
hasher
:
(
key
:
K
)
->
Int
,
equalKey
:
(
a
:
K
,
b
:
K
)
->
Boolean
,
equalValue
:
(
a
:
V
,
b
:
V
)
->
Boolean
,
initialCapacity
:
Int
=
16
)
Types
Bucket
Link copied to clipboard
inner
class
Bucket
Properties
entries
Link copied to clipboard
open
override
val
entries
:
MutableSet
<
MutableMap.MutableEntry
<
K
,
V
>
>
equal
Key
Link copied to clipboard
val
equalKey
:
(
a
:
K
,
b
:
K
)
->
Boolean
equal
Value
Link copied to clipboard
val
equalValue
:
(
a
:
V
,
b
:
V
)
->
Boolean
hasher
Link copied to clipboard
val
hasher
:
(
key
:
K
)
->
Int
initial
Capacity
Link copied to clipboard
val
initialCapacity
:
Int
=
16
keys
Link copied to clipboard
open
override
val
keys
:
MutableSet
<
K
>
size
Link copied to clipboard
open
override
var
size
:
Int
values
Link copied to clipboard
open
override
val
values
:
MutableCollection
<
V
>
Functions
append
Link copied to clipboard
fun
<
K
,
V
>
MutableMapList
<
K
,
V
>
.
append
(
key
:
K
,
value
:
V
)
:
MutableMapList
<
K
,
V
>
append
All
Link copied to clipboard
fun
<
K
,
V
>
MutableMapList
<
K
,
V
>
.
appendAll
(
vararg
items
:
Pair
<
K
,
V
>
)
:
MutableMapList
<
K
,
V
>
as
Fake
Mutable
Link copied to clipboard
fun
<
K
,
V
>
Map
<
K
,
V
>
.
asFakeMutable
(
)
:
FakeMutableMap
<
K
,
V
>
clear
Link copied to clipboard
open
override
fun
clear
(
)
contains
Key
Link copied to clipboard
open
override
fun
containsKey
(
key
:
K
)
:
Boolean
contains
Value
Link copied to clipboard
open
override
fun
containsValue
(
value
:
V
)
:
Boolean
flat
Map
Iterable
Link copied to clipboard
fun
<
K
,
V
>
MapList
<
K
,
V
>
.
flatMapIterable
(
)
:
Iterable
<
Pair
<
K
,
V
>
>
flat
Map
Iterator
Link copied to clipboard
fun
<
K
,
V
>
MapList
<
K
,
V
>
.
flatMapIterator
(
)
:
Iterator
<
Pair
<
K
,
V
>
>
flatten
Link copied to clipboard
fun
<
K
,
V
>
MapList
<
K
,
V
>
.
flatten
(
)
:
List
<
Pair
<
K
,
V
>
>
flip
Link copied to clipboard
fun
<
K
,
V
>
Map
<
K
,
V
>
.
flip
(
)
:
Map
<
V
,
K
>
get
Link copied to clipboard
open
operator override
fun
get
(
key
:
K
)
:
V
?
get
First
Link copied to clipboard
fun
<
K
,
V
>
MapList
<
K
,
V
>
.
getFirst
(
key
:
K
)
:
V
?
get
Last
Link copied to clipboard
fun
<
K
,
V
>
MapList
<
K
,
V
>
.
getLast
(
key
:
K
)
:
V
?
incr
Link copied to clipboard
fun
<
K
>
MutableMap
<
K
,
Int
>
.
incr
(
key
:
K
,
delta
:
Int
=
+1
)
:
Int
is
Empty
Link copied to clipboard
open
override
fun
isEmpty
(
)
:
Boolean
put
Link copied to clipboard
open
override
fun
put
(
key
:
K
,
value
:
V
)
:
V
?
put
All
Link copied to clipboard
open
override
fun
putAll
(
from
:
Map
<
out
K
,
V
>
)
remove
Link copied to clipboard
open
override
fun
remove
(
key
:
K
)
:
V
?
replace
Link copied to clipboard
fun
<
K
,
V
>
MutableMapList
<
K
,
V
>
.
replace
(
key
:
K
,
value
:
V
)
:
MutableMapList
<
K
,
V
>
replace
All
Link copied to clipboard
fun
<
K
,
V
>
MutableMapList
<
K
,
V
>
.
replaceAll
(
vararg
items
:
Pair
<
K
,
V
>
)
:
MutableMapList
<
K
,
V
>
to
Case
Insensitive
Map
Link copied to clipboard
fun
<
T
>
Map
<
String
,
T
>
.
toCaseInsensitiveMap
(
)
:
Map
<
String
,
T
>
to
Fast
Link copied to clipboard
fun
<
T
:
Any
>
Map
<
String
,
T
>
.
toFast
(
)
:
FastStringMap
<
T
>
to
Int
Map
Link copied to clipboard
fun
<
T
>
Map
<
Int
,
T
>
.
toIntMap
(
)
:
IntMap
<
T
>