Package org.apache.xmlbeans
Class QNameCache
java.lang.Object
org.apache.xmlbeans.QNameCache
public final class QNameCache extends Object
A cache that can be used to pool QName instances. Each thread has one.
-
Constructor Summary
Constructors Constructor Description QNameCache(int initialCapacity)
Creates a QNameCache with the given initialCapacity.QNameCache(int initialCapacity, float loadFactor)
Creates a QNameCache with the given initialCapacity and loadFactor. -
Method Summary
-
Constructor Details
-
QNameCache
public QNameCache(int initialCapacity, float loadFactor)Creates a QNameCache with the given initialCapacity and loadFactor.- Parameters:
initialCapacity
- the number of entries to initially make space forloadFactor
- a number to control the density of the hashtable
-
QNameCache
public QNameCache(int initialCapacity)Creates a QNameCache with the given initialCapacity.- Parameters:
initialCapacity
- the number of entries to initially make space for
-
-
Method Details