org.openmali.vecmath2.pools
Class ColordPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Colord>
      extended by org.openmali.vecmath2.pools.ColordPool

public class ColordPool
extends ObjectPool<Colord>

An instance pool for Colord instances.


Constructor Summary
ColordPool(int initialSize)
           
 
Method Summary
 Colord alloc()
          
 Colord alloc(double r, double g, double b)
           
 Colord alloc(double r, double g, double b, double a)
           
protected  Colord 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

ColordPool

public ColordPool(int initialSize)
Method Detail

newInstance

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

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

alloc

public Colord alloc()

Overrides:
alloc in class ObjectPool<Colord>

alloc

public Colord alloc(double r,
                    double g,
                    double b)

alloc

public Colord alloc(double r,
                    double g,
                    double b,
                    double a)