net.sf.freecol.common.model
Class TypeCountMap<T extends FreeColGameObjectType>

java.lang.Object
  extended by net.sf.freecol.common.model.TypeCountMap<T>

public class TypeCountMap<T extends FreeColGameObjectType>
extends java.lang.Object


Constructor Summary
TypeCountMap()
           
 
Method Summary
 void clear()
           
 boolean containsKey(T key)
           
 int getCount(T key)
           
 java.util.Map<T,java.lang.Integer> getValues()
           
 java.lang.Integer incrementCount(T key, int newCount)
           
 boolean isEmpty()
           
 java.util.Set<T> keySet()
           
 int size()
           
 java.util.Collection<java.lang.Integer> values()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeCountMap

public TypeCountMap()
Method Detail

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()