Constructor and Description |
---|
CountIntMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
int |
decrease(KEY key)
Increase 'key' -1 returning previous value.
|
int |
decrease(KEY key,
int amount)
Increase 'key' -amount returning previous value.
|
Set<Map.Entry<KEY,Integer>> |
entrySet() |
Integer |
get(Object key) |
int |
increase(KEY key)
Increase 'key' +1 returning previous value.
|
int |
increase(KEY key,
int amount)
Increase 'key' +amount returning previous value.
|
boolean |
isEmpty() |
Set<KEY> |
keySet() |
int |
multi(KEY key,
int amount)
Multiplies 'key' with amount returning previous value.
|
Integer |
put(KEY key,
Integer value) |
void |
putAll(Map<? extends KEY,? extends Integer> m) |
Integer |
remove(Object key) |
int |
set(KEY key,
int value)
Sets key to 'value' returning previously associated value (alias for
put(Object, Integer) ). |
int |
size() |
Collection<Integer> |
values() |
public int set(KEY key, int value)
put(Object, Integer)
).key
- value
- public int increase(KEY key)
key
- public int increase(KEY key, int amount)
key
- public int decrease(KEY key)
key
- public int decrease(KEY key, int amount)
key
- public int multi(KEY key, int amount)
key
- public boolean containsKey(Object key)
containsKey
in interface Map<KEY,Integer>
public boolean containsValue(Object value)
containsValue
in interface Map<KEY,Integer>
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.