org.openmali.vecmath2.pools
Class Tuple4iPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Tuple4i>
      extended by org.openmali.vecmath2.pools.Tuple4iPool

public class Tuple4iPool
extends ObjectPool<Tuple4i>

An instance pool for Tuple4i instances.


Constructor Summary
Tuple4iPool(int initialSize)
           
 
Method Summary
 Tuple4i alloc()
          
 Tuple4i alloc(int x, int y, int z, int w)
           
protected  Tuple4i 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

Tuple4iPool

public Tuple4iPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Tuple4i alloc()

Overrides:
alloc in class ObjectPool<Tuple4i>

alloc

public Tuple4i alloc(int x,
                     int y,
                     int z,
                     int w)