public abstract class MultiMap<K,V> extends Object
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(K key) |
static <K,V> MultiMapToList<K,V> |
createMapList() |
static <K,V> MultiMapToSet<K,V> |
createMapSet() |
boolean |
equals(Object other) |
Iterator<V> |
flatten()
Does not materialise the contents
|
abstract Collection<V> |
get(K key) |
V |
getOne(K key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keys() |
void |
put(K key,
V value) |
void |
putAll(K key,
V... values) |
void |
remove(K key,
V value) |
void |
removeKey(K key) |
String |
toString() |
abstract Collection<V> |
values() |
abstract Collection<V> |
values(K key) |
public static <K,V> MultiMapToList<K,V> createMapList()
public static <K,V> MultiMapToSet<K,V> createMapSet()
public abstract Collection<V> get(K key)
public void removeKey(K key)
public abstract Collection<V> values(K key)
public abstract Collection<V> values()
public boolean containsKey(K key)
public void clear()
public boolean isEmpty()
Licenced under the Apache License, Version 2.0