QNameCache Class
- public final class QNameCache
extends Object
A cache that can be used to pool QName instances. Each thread has one.
-
Hierarchy
-
Object
QNameCache
-
QNameCache(int initialCapacity, float loadFactor)
- Creates a QNameCache with the given initialCapacity and loadFactor.
|
-
QNameCache(int initialCapacity)
- Creates a QNameCache with the given initialCapacity.
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QNameCache
public QNameCache(int initialCapacity,
float loadFactor)
- Creates a QNameCache with the given initialCapacity and loadFactor.
QNameCache
public QNameCache(int initialCapacity)
- Creates a QNameCache with the given initialCapacity.
getName(String, String) Method
public QName
getName(String
uri,
String
localName)
Fetches a QName with the given namespace and localname.
Creates one if one is not found in the cache.
Parameters
-
uri
- the namespace
-
localName
- the localname
Returns
- the cached QName