|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xpath.axes.IteratorPool
public final class IteratorPool
Pool of object of a given type to pick from to help memory usage
Field Summary | |
---|---|
private java.util.ArrayList |
m_freeStack
Stack of given objects this points to. |
private DTMIterator |
m_orig
Type of objects in this pool. |
(package private) static long |
serialVersionUID
|
Constructor Summary | |
---|---|
IteratorPool(DTMIterator original)
Constructor IteratorPool |
Method Summary | |
---|---|
void |
freeInstance(DTMIterator obj)
Add an instance of the given object to the pool |
DTMIterator |
getInstance()
Get an instance of the given object in this pool |
DTMIterator |
getInstanceOrThrow()
Get an instance of the given object in this pool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
private final DTMIterator m_orig
private final java.util.ArrayList m_freeStack
Constructor Detail |
---|
public IteratorPool(DTMIterator original)
original
- The original iterator from which all others will be cloned.Method Detail |
---|
public DTMIterator getInstanceOrThrow() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public DTMIterator getInstance()
public void freeInstance(DTMIterator obj)
obj
- Object to add.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |