|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.game.boardgame.action.AbstractGridBoardActionPool
public abstract class AbstractGridBoardActionPool
Provides base functionality for a pool for grid board action objects.
Constructor Summary | |
---|---|
AbstractGridBoardActionPool()
Construct this object. |
|
AbstractGridBoardActionPool(int maxSize)
Construct this object with the given parameter. |
Method Summary | |
---|---|
protected List |
getPool()
Return the pool vector. |
protected void |
incrementCreationCount()
Increment the creation count. |
void |
release(IAction action)
Return an instance to the reusable object pool. |
void |
report()
Log a statistics report. |
int |
size()
Return the current size of the pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractGridBoardActionPool()
public AbstractGridBoardActionPool(int maxSize)
maxSize
- Guess at the maximum size of the pool. The pool will
expand as necessary.Method Detail |
---|
public void release(IAction action)
action
- The instance to release.public void report()
public int size()
protected List getPool()
protected void incrementCreationCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |