The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search
Class calypso.util.Recycler
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
Copyright © 1998-2000 The Mozilla Organization.
Last modified December 25, 1998.