Class MultimapList<K,​V>

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

    public class MultimapList<K,​V>
    extends HashMap<K,​List<V>>
    Multimap that stores values in an ArrayList. It's not worth pulling in a guava dependency just for this one class.
    Author:
    Jeff Schnitzer
    See Also:
    Serialized Form
    • Constructor Detail

      • MultimapList

        public MultimapList()
    • Method Detail

      • add

        public boolean add​(K key,
                           V value)
        Adds a value to the set associated with the key.