edu.illinois.cs.cogcomp.lbj.coref.util.aux
Class Maps

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.util.aux.Maps

public class Maps
extends java.lang.Object


Constructor Summary
Maps()
           
 
Method Summary
static
<T> void
addAllAToB(java.util.Map<T,java.lang.Integer> a, java.util.Map<T,java.lang.Integer> b)
           
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.
static
<K> int
get(java.util.Map<K,java.lang.Integer> m, K key)
           
static
<K,V> V
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
 

Constructor Detail

Maps

public Maps()
Method Detail

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)