Class dnx.lr.LRAllocationManager
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.LRAllocationManager

java.lang.Object
   |
   +----dnx.lr.LRAllocationManager

public class LRAllocationManager
extends Object
This class is a simple way to avoid allocating excessive numbers of objects. You create an LRAllocationManager, specifying a Class; then you call allocate() and free() as necessary to create and "free" (i.e. make available for reuse) objects of the class.

Constructor Index

 o LRAllocationManager(Class)
 o LRAllocationManager(String)

Method Index

 o allocate()
 o free(Object)

Constructors

 o LRAllocationManager
  public LRAllocationManager(Class cl)
 o LRAllocationManager
  public LRAllocationManager(String classname)

Methods

 o allocate
  public synchronized Object allocate()
 o free
  public synchronized void free(Object object)

All Packages  Class Hierarchy  This Package  Previous  Next  Index