rd-core
2023.2.3
rd-core
/
com.jetbrains.rd.util.collections
/
CountingSet
Counting
Set
class
CountingSet
<
T
>
:
Map
<
T
,
Int
>
Content copied to clipboard
Constructors
Functions
Properties
Constructors
Counting
Set
Link copied to clipboard
fun
CountingSet
(
)
Content copied to clipboard
Functions
add
Link copied to clipboard
fun
add
(
key
:
T
,
value
:
Int
)
:
Int
Content copied to clipboard
Returns new value
contains
Key
Link copied to clipboard
open
override
fun
containsKey
(
key
:
T
)
:
Boolean
Content copied to clipboard
contains
Value
Link copied to clipboard
open
override
fun
containsValue
(
value
:
Int
)
:
Boolean
Content copied to clipboard
for
Each
Link copied to clipboard
open
fun
forEach
(
p0
:
BiConsumer
<
in
T
,
in
Int
>
)
Content copied to clipboard
get
Link copied to clipboard
open
operator override
fun
get
(
key
:
T
)
:
Int
Content copied to clipboard
get
Or
Default
Link copied to clipboard
open
fun
getOrDefault
(
key
:
T
,
defaultValue
:
Int
)
:
Int
Content copied to clipboard
is
Empty
Link copied to clipboard
open
override
fun
isEmpty
(
)
:
Boolean
Content copied to clipboard
Properties
entries
Link copied to clipboard
open
override
val
entries
:
Set
<
Map.Entry
<
T
,
Int
>
>
Content copied to clipboard
keys
Link copied to clipboard
open
override
val
keys
:
Set
<
T
>
Content copied to clipboard
map
Link copied to clipboard
val
map
:
MutableMap
<
T
,
Int
>
Content copied to clipboard
size
Link copied to clipboard
open
override
val
size
:
Int
Content copied to clipboard
values
Link copied to clipboard
open
override
val
values
:
Collection
<
Int
>
Content copied to clipboard