Class MultiMapKeyToList<S,T>


  • public class MultiMapKeyToList<S,T>
    extends Object
    A multimap from key to a list of values.
    • Constructor Detail

      • MultiMapKeyToList

        public MultiMapKeyToList()
        A multimap from key to a list of values.
    • Method Detail

      • put

        public void put​(S key,
                        T value)
        Put a value into the multimap.
      • get

        public List<T> get​(S key)
        Get a value from the multimap.
      • entrySet

        public Set<Map.Entry<S,List<T>>> entrySet()
        Get the entry set from the underlying map.
      • getRawMap

        public Map<S,List<T>> getRawMap()
        Get the underlying map.
      • isEmpty

        public boolean isEmpty()
        Return true if this map is empty.