Key - - the key.VInner - - the inner value type.VOuter - - the outer value type.public abstract class ConvertedMultimap<Key,VInner,VOuter> extends AbstractConverted<VInner,VOuter> implements com.google.common.collect.Multimap<Key,VOuter>
| Constructor and Description |
|---|
ConvertedMultimap(com.google.common.collect.Multimap<Key,VInner> inner) |
| Modifier and Type | Method and Description |
|---|---|
Map<Key,Collection<VOuter>> |
asMap() |
void |
clear() |
boolean |
containsEntry(Object key,
Object value) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Collection<Map.Entry<Key,VOuter>> |
entries() |
Collection<VOuter> |
get(Key key) |
boolean |
isEmpty() |
com.google.common.collect.Multiset<Key> |
keys() |
Set<Key> |
keySet() |
boolean |
put(Key key,
VOuter value) |
boolean |
putAll(Key key,
Iterable<? extends VOuter> values) |
boolean |
putAll(com.google.common.collect.Multimap<? extends Key,? extends VOuter> multimap) |
boolean |
remove(Object key,
Object value) |
Collection<VOuter> |
removeAll(Object key) |
Collection<VOuter> |
replaceValues(Key key,
Iterable<? extends VOuter> values) |
int |
size() |
protected Collection<VInner> |
toInnerCollection(Collection<VOuter> outer)
Wrap a given collection.
|
protected Object |
toInnerObject(Object outer)
Convert to an inner object if its of the correct type, otherwise leave it.
|
protected Collection<VOuter> |
toOuterCollection(Collection<VInner> inner)
Wrap a given collection.
|
String |
toString()
Returns a string representation of this map.
|
Collection<VOuter> |
values() |
getInnerConverter, getOuterConverter, toInner, toOuterprotected Collection<VOuter> toOuterCollection(Collection<VInner> inner)
inner - - the inner collection.protected Collection<VInner> toInnerCollection(Collection<VOuter> outer)
outer - - the outer collection.protected Object toInnerObject(Object outer)
outer - - the outer object.public int size()
public boolean isEmpty()
public boolean putAll(com.google.common.collect.Multimap<? extends Key,? extends VOuter> multimap)
public Collection<VOuter> replaceValues(@Nullable Key key, Iterable<? extends VOuter> values)
public Collection<VOuter> removeAll(@Nullable Object key)
public void clear()
public Collection<VOuter> get(@Nullable Key key)
public com.google.common.collect.Multiset<Key> keys()
public Collection<VOuter> values()
public Collection<Map.Entry<Key,VOuter>> entries()
public Map<Key,Collection<VOuter>> asMap()
public String toString()
String.valueOf(Object).Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.