Package 

Class Multimap


  • 
    public class Multimap<K, V>
    
                        

    Structure that handles singleKey-multipleValues map.

    • Method Summary

      Modifier and Type Method Description
      List<V> get(K key)
      void put(K key, V value) Add the value to the map.
      int size()
      boolean isEmpty()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        @NonNull() List<V> get(K key)
        Parameters:
        key - of the values to be retrieved
      • put

         void put(K key, V value)

        Add the value to the map.

        Parameters:
        key - of the value.
        value - to be added.