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.HashtableRecycler

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

Static recycler class for java.util.Hashtable


public final class  HashtableRecycler
     extends java.lang.Object
{
          // Fields 1
     static Recycler gRecycler;

          // Constructors 1
     public HashtableRecycler();

          // Methods 5
     public static synchronized Hashtable Alloc();
     public static synchronized Hashtable Alloc(int);
     public static synchronized void EmptyRecycler();
     public static synchronized void Recycle(Hashtable);
     static void classFinalize() throws Throwable;
}



Fields


gRecycler

   static Recycler gRecycler



Constructors


HashtableRecycler

   public HashtableRecycler() 

Default constructor




Methods


Alloc

   public static synchronized Hashtable Alloc() 

Get one



Alloc

   public static synchronized Hashtable Alloc(int aCapacity) 

Get one with an initial size since the growth mechanism is private (for now) a recycled table won't really grow to capacity

Parameter Description
aCapacity desired initial capacity



Recycle

   public static synchronized void Recycle(Hashtable aTable) 

Recycle a hashtable (it will be cleared by the recycler)

Parameter Description
aTable table to be recycled



EmptyRecycler

   public static synchronized void EmptyRecycler() 

Empty the recycler, it's earth day

Parameter Description



classFinalize

   static void classFinalize()  throws Throwable

finalize class for unloading

Parameter Description



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