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

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


public class  Recycler
     extends java.lang.Object
     implements calypso.util.MemoryPressure
{
          // Fields 4
     Object[] fBuffer;
     int fCapacity;
     int fCount;
     static final int gDefaultCapacity;

          // Constructors 2
     public Recycler();
     public Recycler(int);

          // Methods 8
     public void empty();
     public Object getRecycledObject();
     public void panic();
     public void postGC(long, long);
     public void preGC(long, long);
     public void recycle(Object);
     public void recycle(Object[]);
     public void reset();
}



Fields


fBuffer

   Object[] fBuffer


fCount

   int fCount


fCapacity

   int fCapacity


gDefaultCapacity

   static final int gDefaultCapacity



Constructors


Recycler

   public Recycler() 

Parameter Description



Recycler

   public Recycler(int aGivenCapacity) 

Parameter Description
aGivenCapacity -- size of underlying buffer




Methods


reset

   public void reset() 

Parameter Description
none Needs to be documented

Returns:
none


recycle

   public void recycle(Object anObject) 

Parameter Description
anObject -- object to be recycled

Returns:
none


recycle

   public void recycle(Object[] anObjectArray) 

Recycles the entire contents of the given list.

Parameter Description



getRecycledObject

   public Object getRecycledObject() 

Parameter Description
none Needs to be documented

Returns:
object or null


empty

   public void empty() 

Parameter Description
none Needs to be documented

Returns:
none


preGC

   public void preGC(long aCurrentHeapSpace, 
                     long aMaximumHeapSpace) 

Parameter Description

Implements:
preGC in interface MemoryPressure


postGC

   public void postGC(long aCurrentHeapSpace, 
                      long aMaximumHeapSpace) 

Parameter Description

Implements:
postGC in interface MemoryPressure


panic

   public void panic() 

Parameter Description

Implements:
panic in interface MemoryPressure


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