net.sf.freecol.common.model
Class TypeCountMap<T extends FreeColGameObjectType>
java.lang.Object
net.sf.freecol.common.model.TypeCountMap<T>
public class TypeCountMap<T extends FreeColGameObjectType>
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeCountMap
public TypeCountMap()
getValues
public java.util.Map<T,java.lang.Integer> getValues()
getCount
public int getCount(T key)
incrementCount
public java.lang.Integer incrementCount(T key,
int newCount)
clear
public void clear()
keySet
public java.util.Set<T> keySet()
values
public java.util.Collection<java.lang.Integer> values()
containsKey
public boolean containsKey(T key)
isEmpty
public boolean isEmpty()
size
public int size()