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

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

Static recycler class for java.util.Vector

See Also:


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

          // Constructors 1
     public VectorRecycler();

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



Fields


gRecycler

   static Recycler gRecycler



Constructors


VectorRecycler

   public VectorRecycler() 

Default constructor




Methods


Alloc

   public static synchronized Vector Alloc() 

Get one



Alloc

   public static synchronized Vector Alloc(int aCapacity) 

Get one with an initial capacity a recycled vector may be bigger than capacity

Parameter Description
aCapacity minimum desired capacity



Recycle

   public static synchronized void Recycle(Vector aVector) 

Recycle a vector (it will be emptied by the recycler)

Parameter Description
aVector vector 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