Class ArrayListMultimap<K,V>
java.lang.Object
org.spongepowered.collections.inheritance.ArrayListMultimap<K,V>
- All Implemented Interfaces:
ListMultimap<K,
,V> ListMultimap.Mutable<K,
,V> Multimap<K,
,V> Multimap.Mutable<K,
V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.collections.multimap.ListMultimap
ListMultimap.Mutable<K,
V> Nested classes/interfaces inherited from interface org.spongepowered.collections.multimap.Multimap
Multimap.Mutable<K,
V> -
Constructor Summary
-
Method Summary
-
Constructor Details
-
ArrayListMultimap
public ArrayListMultimap()
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
size
public int size() -
get
Description copied from interface:ListMultimap
Gets thecollection
of paired values for the providedkey
. It is expected that regardless whether akey
has any valus matched, the returnedcollection
is nevernull
but possiblyempty
.Unlike other possible implementations, this
Collection
returned is of aList
. It is not guaranteed that the insertion order is retained, or that the provided list is sorted. -
put
- Specified by:
put
in interfaceMultimap.Mutable<K,
V>
-
remove
- Specified by:
remove
in interfaceMultimap.Mutable<K,
V>
-