Class TypeCountMap<T extends FreeColSpecObjectType>


  • public class TypeCountMap<T extends FreeColSpecObjectType>
    extends java.lang.Object
    A map that incorporates a count. FIXME: implement entire Map interface
    • 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()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object