org.openmali.vecmath2.pools
Class Point2fPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Point2f>
      extended by org.openmali.vecmath2.pools.Point2fPool

public class Point2fPool
extends ObjectPool<Point2f>

An instance pool for Point2f instances.


Constructor Summary
Point2fPool(int initialSize)
           
 
Method Summary
 Point2f alloc()
          
 Point2f alloc(float x, float y)
           
protected  Point2f newInstance()
          Creates a new instance of a pooled object.
 
Methods inherited from class org.openmali.pooling.ObjectPool
free, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point2fPool

public Point2fPool(int initialSize)
Method Detail

newInstance

protected Point2f newInstance()
Creates a new instance of a pooled object.

Specified by:
newInstance in class ObjectPool<Point2f>
Returns:
the new object instance

alloc

public Point2f alloc()

Overrides:
alloc in class ObjectPool<Point2f>

alloc

public Point2f alloc(float x,
                     float y)