Package org.basex.query.util.hash
Class QNmMap<E>
java.lang.Object
org.basex.util.hash.ASet
org.basex.query.util.hash.QNmSet
org.basex.query.util.hash.QNmMap<E>
- Type Parameters:
E- generic value type
This is an efficient and memory-saving hash map for storing QNames and objects.
hash set.- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.basex.query.util.hash.QNmSet
add, contains, hash, id, iterator, putMethods inherited from class org.basex.util.hash.ASet
capacity, checkSize, clear, isEmpty, size, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
QNmMap
public QNmMap()Default constructor.
-
-
Method Details
-
put
Indexes the specified key and value. If the key exists, the value is updated.- Parameters:
qnm- QName to look upval- value
-
get
Returns the value for the specified key.- Parameters:
qnm- QName to look up- Returns:
- value, or
nullif nothing was found
-
values
Returns a value iterator.- Returns:
- iterator
-
rehash
protected void rehash(int newSize) Description copied from class:ASetRehashes all entries. -
toString
-