FileDocCategorySizeDatePackage
DynaTrash.javaAPI DocExample3592Mon Apr 06 18:10:20 BST 1998c16.dynatrash

TypeMap

public class TypeMap extends Object

Fields Summary
private Hashtable
t
Constructors Summary
Methods Summary
public voidadd(java.lang.Object o)

      
    Class type = o.getClass();
    if(t.containsKey(type))
      ((Vector)t.get(type)).addElement(o);
    else {
      Vector v = new Vector();
      v.addElement(o);
      t.put(type,v);
    }
  
public Fillablefiller()

 
    // Anonymous inner class:
    return new Fillable() {
      public void addTrash(Trash t) { add(t); }
    };
  
public java.util.Vectorget(java.lang.Class type)

    return (Vector)t.get(type);
  
public java.util.Enumerationkeys()

 return t.keys();