Class MultiValueHashListStorage<K,​V>

  • Type Parameters:
    K - - key type
    V - - value type

    public final class MultiValueHashListStorage<K,​V>
    extends Object
    This class allows to store multiple values for single key value. Key and value order are honored. Duplicate entries of key-value pair is not allowed, it is vetted via java.lang.Object#equals() method.
    Author:
    baranowb
    • Constructor Detail

      • MultiValueHashListStorage

        public MultiValueHashListStorage()
    • Method Detail

      • put

        public void put​(K key,
                        V value)
      • valuesIterator

        public Iterator<V> valuesIterator()
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • containsKey

        public boolean containsKey​(Object key)
      • containsValue

        public boolean containsValue​(Object value)
      • containsValue

        public boolean containsValue​(Object key,
                                     Object value)
      • keySet

        public Set<K> keySet()
      • clear

        public void clear()