Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

HashIdTipo.java

Go to the documentation of this file.
00001 package plp.orientadaObjetos1.memoria.colecao;
00002 
00003 import java.util.Hashtable;
00004 
00005 import plp.orientadaObjetos1.expressao.leftExpression.Id;
00006 import plp.orientadaObjetos1.util.Tipo;
00007 
00012 public class HashIdTipo {
00013 
00017     private Hashtable tabela;
00018 
00022     public HashIdTipo() {
00023         this.tabela = new Hashtable();
00024     }
00025 
00034     public Tipo put(Id id, Tipo tipo) {
00035         Object result = tabela.put(id, tipo);
00036         if (result == null) {
00037             return null;
00038         } else {
00039             return (Tipo) result;
00040         }
00041     }
00042 
00049     public Tipo get(Id id) {
00050         Object result = tabela.get(id);
00051         if (result == null) {
00052             return null;
00053         } else {
00054             return (Tipo) result;
00055         }
00056     }
00057 }

Generated on Mon Aug 8 20:20:47 2005 for Linguagem OO1 - Generics by  doxygen 1.4.4