Class DoubleAddingMap<K>

java.lang.Object
java.util.AbstractMap<K,Double>
java.util.HashMap<K,Double>
ubic.basecode.dataStructure.DoubleAddingMap<K>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,Double>

public class DoubleAddingMap<K> extends HashMap<K,Double>
Similar to ubic.gemma.util.CountingMap. Except instead it adds the values of the keys.
Author:
?
See Also:
  • Constructor Details

    • DoubleAddingMap

      public DoubleAddingMap()
  • Method Details

    • addPut

      public Double addPut(K key, Double d)
      adds the current value to the value of this key. If the current value is null then value becomes the d parameter.
      Returns:
      the value at this key.
    • addPutAll

      public void addPutAll(Map<? extends K,? extends Double> map)