Class CountingHash<K extends Serializable>

java.lang.Object
java.util.AbstractMap<K,Integer>
com.kingsrook.qqq.backend.core.utils.CountingHash<K>
All Implemented Interfaces:
Serializable, Map<K,Integer>

public class CountingHash<K extends Serializable> extends AbstractMap<K,Integer> implements Serializable
Hash that provides "counting" capability -- keys map to Integers that are automatically/easily summed to
See Also:
  • Constructor Details

    • CountingHash

      public CountingHash()
      Default constructor
    • CountingHash

      public CountingHash(Map<K,Integer> sourceMap)
      Constructor where you can supply a source map (e.g., if you want a specific Map type (like LinkedHashMap), or with pre-values. Note - the input map will be wrapped in a MutableMap - so - it'll be mutable.
  • Method Details