Class ListMap<K,​V>

  • All Implemented Interfaces:
    Serializable, Cloneable, Map<K,​List<V>>

    public class ListMap<K,​V>
    extends HashMap<K,​List<V>>
    A Map class that holds a list of entries under each key instead of a single entry, and provides utility methods for adding an entry under a key.
    See Also:
    Serialized Form
    • Constructor Detail

      • ListMap

        public ListMap()
    • Method Detail

      • add

        public void add​(K key,
                        V value)
        Adds a single value to the list stored under a key.