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

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

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

public static final class SatinConstants.ObjectPoolPoint2D
extends ObjectPool

Object pool of Point2D objects.


Constructor Summary
SatinConstants.ObjectPoolPoint2D()
           
 
Method Summary
 Object createObject()
          Override this method so that it creates the Object you want in the pool.
 Object getObject()
          Get an object.
 
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.ObjectPoolPoint2D

public SatinConstants.ObjectPoolPoint2D()
Method Detail

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

getObject

public Object getObject()
Description copied from class: ObjectPool
Get an object.

Usage Notes:

Also, be sure not to assign the reference that you get!!! If you do, then you cannot release the object (and will get memory leaks).

Overrides:
getObject in class ObjectPool
Following copied from class: edu.berkeley.guir.lib.collection.ObjectPool
Throws:
EmptyException - (a RuntimeException) if empty.

Copyright Information