org.openscience.nmrshiftdb.util
Class OneToManyTable<S,T>

java.lang.Object
  extended by 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
           
 
Constructor Summary
OneToManyTable()
           
 
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
 

Field Detail

table

protected java.util.Hashtable<S,java.util.ArrayList<T>> table
Constructor Detail

OneToManyTable

public OneToManyTable()
Method Detail

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)