Parsing Engine

danbikel.util
Class ObjectBank

java.lang.Object
  extended by danbikel.util.ObjectBank

public class ObjectBank
extends Object

A generic object bank: the bank monotonically grows until all of its objects are reclaimed.


Constructor Summary
ObjectBank(Class type)
           
ObjectBank(Class type, int initialSize)
           
 
Method Summary
 int capacity()
           
 Object get()
           
 int numInUse()
           
 void reclaimAll()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectBank

public ObjectBank(Class type)

ObjectBank

public ObjectBank(Class type,
                  int initialSize)
Method Detail

get

public Object get()

reclaimAll

public void reclaimAll()

size

public int size()

numInUse

public int numInUse()

capacity

public int capacity()

Parsing Engine

Author: Dan Bikel.