org.openjena.atlas.lib
Class MultiMap<K,V>
java.lang.Object
org.openjena.atlas.lib.MultiMap<K,V>
public abstract class MultiMap<K,V>
- extends Object
createMapList
public static <K,V> MultiMap<K,V> createMapList()
createMapSet
public static <K,V> MultiMap<K,V> createMapSet()
get
public Collection<V> get(K key)
put
public void put(K key,
V value)
values
public Collection<V> values(K key)
values
public Collection<V> values()
containsKey
public boolean containsKey(K key)
keys
public Set<K> keys()
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