org.apache.ctakes.utils.struct
Class CounterMap<K>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,Integer>
          extended by org.apache.ctakes.utils.struct.CounterMap<K>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,Integer>

public class CounterMap<K>
extends HashMap<K,Integer>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
CounterMap()
           
 
Method Summary
 void add(K key)
           
 void add(K key, Integer i)
           
 Integer get(Object key)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

CounterMap

public CounterMap()
Method Detail

get

public Integer get(Object key)
Specified by:
get in interface Map<K,Integer>
Overrides:
get in class HashMap<K,Integer>

add

public void add(K key)

add

public void add(K key,
                Integer i)


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.