Class FrequencySet<T>
java.lang.Object
java.util.AbstractMap<T,Integer>
java.util.HashMap<T,Integer>
com.sun.xml.analysis.frequency.FrequencySet<T>
- All Implemented Interfaces:
Serializable, Cloneable, Map<T,Integer>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidAdd a value to the set.voidAdd a value to the set with 0 occurences.Create an ordered list of values in the order of decreasing frequency of occurence.Create an ordered set of values in the order of decreasing frequency of occurence.Methods inherited from class 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, valuesMethods inherited from class AbstractMap
equals, hashCode, toString
-
Constructor Details
-
FrequencySet
public FrequencySet()
-
-
Method Details
-
add
-
add0
Add a value to the set with 0 occurences.- Parameters:
value- the value to put in the set.
-
_add
-
createFrequencyBasedList
-
createFrequencyBasedSet
-