org.openjena.atlas.lib
Class MultiMap<K,V>

java.lang.Object
  extended by org.openjena.atlas.lib.MultiMap<K,V>

public abstract class MultiMap<K,V>
extends Object


Method Summary
 boolean containsKey(K key)
           
static
<K,V> MultiMap<K,V>
createMapList()
           
static
<K,V> MultiMap<K,V>
createMapSet()
           
 boolean equals(Object other)
           
 Iterator<V> flatten()
          Does not materialise the contents
 Collection<V> get(K key)
           
 int hashCode()
           
 boolean isEmpty()
           
 Set<K> keys()
           
 void put(K key, V value)
           
 String toString()
           
 Collection<V> values()
           
 Collection<V> values(K key)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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