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 IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4