org.openmali.vecmath2.pools
Class Vector2iPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Vector2i>
      extended by org.openmali.vecmath2.pools.Vector2iPool

public class Vector2iPool
extends ObjectPool<Vector2i>

An instance pool for Vector2i instances.


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

Vector2iPool

public Vector2iPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Vector2i alloc()

Overrides:
alloc in class ObjectPool<Vector2i>

alloc

public Vector2i alloc(int x,
                      int y)