APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xpath.internal.axes

public final Class IteratorPool

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
com.sun.org.apache.xml.internal.dtm.DTMIterator, com.sun.org.apache.xml.internal.utils.WrappedRuntimeException, java.util.ArrayList, .List

Pool of object of a given type to pick from to help memory usage

Field Summary

Modifier and TypeField and Description
private final List<DTMIterator>
m_freeStack

Stack of given objects this points to.

private final DTMIterator
m_orig

Type of objects in this pool.

pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
IteratorPool(DTMIterator
The original iterator from which all others will be cloned.
original
)

Constructor IteratorPool

Method Summary

Modifier and TypeMethod and Description
public synchronized void
freeInstance(DTMIterator
Object to add.
obj
)

Add an instance of the given object to the pool

public synchronized DTMIterator

Returns:

An instance of the given object
getInstance
()

Get an instance of the given object in this pool

public synchronized DTMIterator

Returns:

An instance of the given object
getInstanceOrThrow
()

Get an instance of the given object in this pool

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_freeStackback to summary
private final List<DTMIterator> m_freeStack

Stack of given objects this points to.

Annotations
@SuppressWarnings:serial
m_origback to summary
private final DTMIterator m_orig

Type of objects in this pool.

Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Constructor Detail

IteratorPoolback to summary
public IteratorPool(DTMIterator original)

Constructor IteratorPool

Parameters
original:DTMIterator

The original iterator from which all others will be cloned.

Method Detail

freeInstanceback to summary
public synchronized void freeInstance(DTMIterator obj)

Add an instance of the given object to the pool

Parameters
obj:DTMIterator

Object to add.

getInstanceback to summary
public synchronized DTMIterator getInstance()

Get an instance of the given object in this pool

Returns:DTMIterator

An instance of the given object

getInstanceOrThrowback to summary
public synchronized DTMIterator getInstanceOrThrow() throws CloneNotSupportedException

Get an instance of the given object in this pool

Returns:DTMIterator

An instance of the given object