|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.utils.maps.CountIntMap<KEY>
public class CountIntMap<KEY>
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
CountIntMap()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public CountIntMap()
Method Detail |
---|
public void clear()
clear
in interface Map<KEY,Integer>
public Set<KEY> keySet()
keySet
in interface Map<KEY,Integer>
public Set<Map.Entry<KEY,Integer>> entrySet()
entrySet
in interface Map<KEY,Integer>
public Collection<Integer> values()
values
in interface Map<KEY,Integer>
public Integer get(Object key)
get
in interface Map<KEY,Integer>
public Integer remove(Object key)
remove
in interface Map<KEY,Integer>
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>
public boolean isEmpty()
isEmpty
in interface Map<KEY,Integer>
public Integer put(KEY key, Integer value)
put
in interface Map<KEY,Integer>
public void putAll(Map<? extends KEY,? extends Integer> m)
putAll
in interface Map<KEY,Integer>
public int size()
size
in interface Map<KEY,Integer>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |