org.openmali.vecmath2.pools
Class Tuple2iPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Tuple2i>
      extended by org.openmali.vecmath2.pools.Tuple2iPool

public class Tuple2iPool
extends ObjectPool<Tuple2i>

An instance pool for Tuple2i instances.


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

Tuple2iPool

public Tuple2iPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Tuple2i alloc()

Overrides:
alloc in class ObjectPool<Tuple2i>

alloc

public Tuple2i alloc(int x,
                     int y)