You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Class calypso.util.HashtableLite

java.lang.Object
   |
   +----calypso.util.HashtableLite

A utility class to avoid the pain (and memory bloat) of making lots of small hashtables. A real HashTable isn't created until the number of elements grows past a certain number (defined internally to HashtableLite). It sure would have been nice if Hashtables were an interface.


public class  HashtableLite
     extends java.lang.Object
     implements java.lang.Cloneable
{
          // Fields 4
     int fCount;
     Object[] fItems;
     AtomHashtable fRealTable;
     private static final int maxItems;

          // Constructors 1
     public HashtableLite();

          // Methods 17
     public void clear();
     public Object clone();
     public boolean contains(Object);
     public boolean containsKey(Atom);
     public int count();
     public Enumeration elements();
     public Object[] elementsArray();
     public Vector elementsVector();
     public Object get(Atom);
     public boolean isEmpty();
     public Enumeration keys();
     public Atom[] keysArray();
     public Vector keysVector();
     public Object put(Atom, Object);
     public Object remove(Atom);
     public int size();
     public String toString();
}



Fields


fCount

   int fCount


fItems

   Object[] fItems


fRealTable

   AtomHashtable fRealTable


maxItems

   private static final int maxItems



Constructors


HashtableLite

   public HashtableLite() 



Methods


clear

   public void clear() 


clone

   public Object clone() 
Overrides:
clone in class Object


contains

   public boolean contains(Object item) 


containsKey

   public boolean containsKey(Atom key) 


count

   public int count() 


elements

   public Enumeration elements() 


elementsArray

   public Object[] elementsArray() 


elementsVector

   public Vector elementsVector() 


get

   public Object get(Atom key) 


isEmpty

   public boolean isEmpty() 


put

   public Object put(Atom key, 
                     Object item) 


keys

   public Enumeration keys() 


keysArray

   public Atom[] keysArray() 


keysVector

   public Vector keysVector() 


remove

   public Object remove(Atom key) 


size

   public int size() 


toString

   public String toString() 
Overrides:
toString in class Object


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4