antlr4-master 4.13.1
antlr4
org.antlr.v4.misc
FrequencySet
Top
Description
Constructors
Methods
org.antlr.v4.misc
public
Class FrequencySet<T>
extends
HashMap
<T,
MutableInt
>
Class Inheritance
java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.antlr.v4.misc.FrequencySet
Imports
java.
util.
HashMap
Count how many of each key we have; not thread safe
Constructor Summary
Access
Constructor and Description
public
FrequencySet
()
Method Summary
Modifier and Type
Method and Description
public
void
add
(
T key
)
public
int
count
(
T key
)
Inherited from
java.util.HashMap
:
clear
clone
compute
computeIfAbsent
computeIfPresent
containsKey
containsValue
entrySet
forEach
get
getOrDefault
isEmpty
keySet
merge
newHashMap
put
putAll
putIfAbsent
remove
remove
replace
replace
replaceAll
size
values
Constructor Detail
FrequencySet
back to summary
public
FrequencySet
()
Method Detail
add
back to summary
public
void
add
(
T key
)
count
back to summary
public
int
count
(
T key
)