org.apache.jena.atlas.lib
Class MultiMap<K,V>
java.lang.Object
org.apache.jena.atlas.lib.MultiMap<K,V>
- Direct Known Subclasses:
- MultiMapToList, MultiMapToSet
public abstract class MultiMap<K,V>
- extends Object
createMapList
public static <K,V> MultiMapToList<K,V> createMapList()
createMapSet
public static <K,V> MultiMapToSet<K,V> createMapSet()
get
public abstract Collection<V> get(K key)
getOne
public V getOne(K key)
putAll
public void putAll(K key,
V... values)
put
public void put(K key,
V value)
remove
public void remove(K key,
V value)
removeKey
public void removeKey(K key)
values
public abstract Collection<V> values(K key)
values
public abstract Collection<V> values()
containsKey
public boolean containsKey(K key)
keys
public Set<K> keys()
clear
public void clear()
isEmpty
public boolean isEmpty()
flatten
public Iterator<V> flatten()
- Does not materialise the contents
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Licenced under the Apache License, Version 2.0