edu.illinois.cs.cogcomp.lbj.coref.util.aux
Class Maps
java.lang.Object
edu.illinois.cs.cogcomp.lbj.coref.util.aux.Maps
public class Maps
- extends java.lang.Object
Constructor Summary |
Maps()
|
Method Summary |
static
|
addAllAToB(java.util.Map<T,java.lang.Integer> a,
java.util.Map<T,java.lang.Integer> b)
|
static
|
addOne(java.util.Map<T,java.lang.Integer> m,
T k)
Adds 1 to the Integer mapped to the key, or adds
(k, new Integer(1)) to the Map. |
static
|
get(java.util.Map<K,java.lang.Integer> m,
K key)
|
static
|
get(java.util.Map<K,V> m,
K key,
V defaultVal)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Maps
public Maps()
addOne
public static <T> void addOne(java.util.Map<T,java.lang.Integer> m,
T k)
- Adds 1 to the Integer mapped to the key, or adds
(k, new Integer(1)) to the Map.
addAllAToB
public static <T> void addAllAToB(java.util.Map<T,java.lang.Integer> a,
java.util.Map<T,java.lang.Integer> b)
get
public static <K> int get(java.util.Map<K,java.lang.Integer> m,
K key)
get
public static <K,V> V get(java.util.Map<K,V> m,
K key,
V defaultVal)