Class ListMap<K,V>

java.lang.Object
io.inversion.utils.ListMap<K,V>

public class ListMap<K,V> extends Object
  • Field Details

  • Constructor Details

    • ListMap

      public ListMap()
  • Method Details

    • size

      public int size()
    • clear

      public void clear()
    • containsKey

      public boolean containsKey(K key)
    • containsMapping

      public boolean containsMapping(K key, V value)
    • putAll

      public void putAll(Map map)
    • putAll

      public void putAll(ListMap listMap)
    • putAll

      public void putAll(K key, Collection<V> values)
    • put

      public Object put(K key, V value)
    • keySet

      public Set<K> keySet()
    • values

      public Collection<V> values()
    • remove

      public List<V> remove(K key)
    • remove

      public void remove(K key, V value)
      Removes the value from the list if thhe list exists
      Parameters:
      key -
      value -
    • get

      public List<V> get(K key)
      Overridden to return empty list instead of null