FileDocCategorySizeDatePackage
MultiHashtable.javaAPI DocJava SE 6 API1555Tue Jun 10 00:22:30 BST 2008com.sun.org.apache.xalan.internal.xsltc.compiler.util

MultiHashtable

public final class MultiHashtable extends Hashtable
author
Jacek Ambroziak
author
Santiago Pericas-Geertsen

Fields Summary
static final long
serialVersionUID
Constructors Summary
Methods Summary
public java.lang.Objectmaps(java.lang.Object from, java.lang.Object to)

	if (from == null) return null;
	final Vector vector = (Vector) get(from);
	if (vector != null) {
	    final int n = vector.size();
	    for (int i = 0; i < n; i++) {
                final Object item = vector.elementAt(i);
		if (item.equals(to)) {
		    return item;
		}
	    }
	}
	return null;
    
public java.lang.Objectput(java.lang.Object key, java.lang.Object value)

          
	Vector vector = (Vector)get(key);
	if (vector == null)
	    super.put(key, vector = new Vector());
	vector.add(value);
	return vector;