Class ClassInheritanceMultimap<K,V>
java.lang.Object
org.spongepowered.collections.inheritance.ClassInheritanceMultimap<K,V>
- All Implemented Interfaces:
ListMultimap<Class<? extends K>,
,V> ListMultimap.Mutable<Class<? extends K>,
,V> Multimap<Class<? extends K>,
,V> Multimap.Mutable<Class<? extends K>,
V>
public class ClassInheritanceMultimap<K,V>
extends Object
implements ListMultimap.Mutable<Class<? extends 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
Modifier and TypeMethodDescriptionstatic <NK,
NV> ClassInheritanceMultimap<NK, NV> Gets thecollection
of paired values for the providedkey
.boolean
isEmpty()
boolean
int
size()
-
Constructor Details
-
ClassInheritanceMultimap
-
-
Method Details
-
create
-
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. -
isEmpty
public boolean isEmpty() -
size
public int size() -
put
- Specified by:
put
in interfaceMultimap.Mutable<K,
V>
-
remove
- Specified by:
remove
in interfaceMultimap.Mutable<K,
V>
-