org.openmali.vecmath2.pools
Class Tuple2fPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Tuple2f>
      extended by org.openmali.vecmath2.pools.Tuple2fPool

public class Tuple2fPool
extends ObjectPool<Tuple2f>

An instance pool for Tuple2f instances.


Constructor Summary
Tuple2fPool(int initialSize)
           
 
Method Summary
 Tuple2f alloc()
          
 Tuple2f alloc(float x, float y)
           
protected  Tuple2f 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

Tuple2fPool

public Tuple2fPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Tuple2f alloc()

Overrides:
alloc in class ObjectPool<Tuple2f>

alloc

public Tuple2f alloc(float x,
                     float y)