|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.alsUtility.ObjectCache
cache objects to avoid object re-allocation. Objects created will not be garbage collected until the ObjectCache is garbage collected. Object class must have a constructor that takes no arguments. This constructor will be used to create the objects as needed.
Constructor Summary | |
ObjectCache(java.lang.String inClass)
|
Method Summary | |
java.lang.Object |
getObject()
|
void |
reinitialize()
Call when it's ok to reuse all of the objects in the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectCache(java.lang.String inClass)
Method Detail |
public java.lang.Object getObject()
public void reinitialize()
|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |