T
- public class CountMap<T> extends Object implements Iterable<Map.Entry<T,Integer>>
http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/collect/Multiset.html
Constructor and Description |
---|
CountMap()
Deprecated.
|
CountMap(Collection<? extends T> values)
Deprecated.
|
CountMap(CountMap<? extends T> other)
Deprecated.
Initialize the countmap with the content of another count map.
|
Modifier and Type | Method and Description |
---|---|
void |
add(CountMap<T> other)
Deprecated.
Adds a complete keymap to this key map.
|
Integer |
add(T t)
Deprecated.
adds T to the map and returns the number of occurences that are now logged
|
Integer |
add(T t,
int inc)
Deprecated.
increase the counter of the map by 'inc'.
|
void |
addAll(Collection<T> list)
Deprecated.
Adds all elements of this collection with a value of 1
|
void |
addAll(Collection<T> list,
int value)
Deprecated.
Adds all elements of this collection with the given value
|
Integer |
get(T label)
Deprecated.
|
int |
getSum()
Deprecated.
returns the sum of all values - NOT the size of the map!
|
Iterator<Map.Entry<T,Integer>> |
iterator()
Deprecated.
|
Set<T> |
keySet()
Deprecated.
|
int |
size()
Deprecated.
|
String |
toString()
Deprecated.
|
Collection<Integer> |
values()
Deprecated.
|
public CountMap()
public CountMap(Collection<? extends T> values)
public void addAll(Collection<T> list)
list
- addAll(java.util.Collection, int)
public void addAll(Collection<T> list, int value)
list
- public void add(CountMap<T> other)
other
- Keymap whose elements will be addedpublic Integer add(T t)
t
- public Integer add(T t, int inc)
t
- inc
- public Collection<Integer> values()
public int getSum()
public int size()
Copyright © 2012. All Rights Reserved.