org.openmali.vecmath2.pools
Class ColordPool
java.lang.Object
org.openmali.pooling.ObjectPool<Colord>
org.openmali.vecmath2.pools.ColordPool
public class ColordPool
- extends ObjectPool<Colord>
An instance pool for Colord instances.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColordPool
public ColordPool(int initialSize)
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)