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.
Methods inherited from class edu.berkeley.guir.lib.collection.ObjectPool |
allocatingObjectPool, getAvailable, getCapacity, isFree, isTaken, main, ownsObject, printDebugStacks, reinitialize, releaseObject, reset, synchronizedObjectPool, toString |
SatinConstants.ObjectPoolStringBuffer
public SatinConstants.ObjectPoolStringBuffer()
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