org.openmali.vecmath2.pools
Class Tuple3iPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Tuple3i>
      extended by org.openmali.vecmath2.pools.Tuple3iPool

public class Tuple3iPool
extends ObjectPool<Tuple3i>

An instance pool for Tuple3i instances.


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

Tuple3iPool

public Tuple3iPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Tuple3i alloc()

Overrides:
alloc in class ObjectPool<Tuple3i>

alloc

public Tuple3i alloc(int x,
                     int y,
                     int z)