KeyType
- The type of the key in the map.public interface NumericMap<KeyType>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all elements from the map.
|
boolean |
containsKey(KeyType key)
Determines if this map contains the given key.
|
KeyType |
getMaxValueKey()
Gets the non-unique key associated with the maximum value in the map.
|
java.util.Set<KeyType> |
getMaxValueKeys()
Gets a set of all keys associated with the maximum value in the map.
|
KeyType |
getMinValueKey()
Gets the non-unique key associated with the minimum value in the map.
|
java.util.Set<KeyType> |
getMinValueKeys()
Gets a set of all keys associated with the minimum value in the map.
|
boolean |
isEmpty()
Returns true if the map is empty.
|
java.util.Set<KeyType> |
keySet()
Gets the set of unique keys in the map.
|
int |
size()
Gets the number of items in the map.
|
boolean isEmpty()
java.util.Set<KeyType> keySet()
boolean containsKey(KeyType key)
key
- A key.int size()
void clear()
KeyType getMaxValueKey()
java.util.Set<KeyType> getMaxValueKeys()
KeyType getMinValueKey()
java.util.Set<KeyType> getMinValueKeys()