Interface ListMultimap<K,V>

All Superinterfaces:
Multimap<K,V>
All Known Subinterfaces:
ListMultimap.Mutable<K,V>
All Known Implementing Classes:
ArrayListMultimap, ClassInheritanceMultimap

public interface ListMultimap<K,V> extends Multimap<K,V>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get(K key)
    Gets the collection of paired values for the provided key.

    Methods inherited from interface org.spongepowered.collections.multimap.Multimap

    isEmpty, size
  • Method Details

    • get

      List<V> get(K key)
      Gets the collection of paired values for the provided key. It is expected that regardless whether a key has any valus matched, the returned collection is never null but possibly empty.

      Unlike other possible implementations, this Collection returned is of a List. It is not guaranteed that the insertion order is retained, or that the provided list is sorted.

      Specified by:
      get in interface Multimap<K,V>
      Parameters:
      key - The key
      Returns: