UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.satin
Class SatinConstants.ObjectPoolStringBuffer

java.lang.Object
  |
  +--edu.berkeley.guir.lib.collection.ObjectPool
        |
        +--edu.berkeley.guir.lib.satin.SatinConstants.ObjectPoolStringBuffer
Enclosing class:
SatinConstants

public static final class SatinConstants.ObjectPoolStringBuffer
extends ObjectPool

Object pool of StringBuffer objects. Fortunately, StringBuffers return unique hashcodes, so we don't need to subclass it. Not that we could if we wanted to, since StringBuffer is final.


Constructor Summary
SatinConstants.ObjectPoolStringBuffer()
           
 
Method Summary
 Object createObject()
          Override this method so that it creates the Object you want in the pool.
 Object getObject()
          Clear out the object before using.
 
Methods inherited from class edu.berkeley.guir.lib.collection.ObjectPool
allocatingObjectPool, getAvailable, getCapacity, isFree, isTaken, main, ownsObject, printDebugStacks, reinitialize, releaseObject, reset, synchronizedObjectPool, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SatinConstants.ObjectPoolStringBuffer

public SatinConstants.ObjectPoolStringBuffer()
Method Detail

getObject

public Object getObject()
Clear out the object before using.
Overrides:
getObject in class ObjectPool
Following copied from class: edu.berkeley.guir.lib.collection.ObjectPool
Throws:
EmptyException - (a RuntimeException) if empty.

createObject

public Object createObject()
Description copied from class: ObjectPool
Override this method so that it creates the Object you want in the pool.
Overrides:
createObject in class ObjectPool

Copyright Information