org.openscience.nmrshiftdb.util
Class OneToManyTable<S,T>
java.lang.Object
org.openscience.nmrshiftdb.util.OneToManyTable<S,T>
public class OneToManyTable<S,T>
- extends java.lang.Object
Field Summary |
protected java.util.Hashtable<S,java.util.ArrayList<T>> |
table
|
Method Summary |
boolean |
contains(S one)
|
java.util.ArrayList<T> |
get(S one)
|
java.util.Iterator |
many(java.lang.Object one)
|
java.util.Enumeration |
ones()
|
boolean |
put(S one,
T element)
|
void |
remove(S one)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
protected java.util.Hashtable<S,java.util.ArrayList<T>> table
OneToManyTable
public OneToManyTable()
put
public boolean put(S one,
T element)
get
public java.util.ArrayList<T> get(S one)
contains
public boolean contains(S one)
remove
public void remove(S one)
ones
public java.util.Enumeration ones()
many
public java.util.Iterator many(java.lang.Object one)