org.exist.util.hashtable
Class Int2ObjectHashMap
java.lang.Object
org.exist.util.hashtable.AbstractHashtable
org.exist.util.hashtable.Int2ObjectHashMap
- Direct Known Subclasses:
- DocumentSet
- public class Int2ObjectHashMap
- extends AbstractHashtable
A hashtable which maps int keys to object values.
- Author:
- Stephan Körnig, Wolfgang Meier (wolfgang@exist-db.org)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keys
protected int[] keys
values
protected java.lang.Object[] values
growthFactor
protected double growthFactor
Int2ObjectHashMap
public Int2ObjectHashMap()
Int2ObjectHashMap
public Int2ObjectHashMap(int iSize)
Int2ObjectHashMap
public Int2ObjectHashMap(int iSize,
double growth)
clear
public void clear()
put
public void put(int key,
java.lang.Object value)
- Puts a new key/value pair into the hashtable.
If the key does already exist, just the value is updated.
- Parameters:
key - value -
get
public java.lang.Object get(int key)
containsKey
public boolean containsKey(int key)
remove
public java.lang.Object remove(int key)
iterator
public java.util.Iterator iterator()
- Specified by:
iterator in class AbstractHashtable
valueIterator
public java.util.Iterator valueIterator()
- Specified by:
valueIterator in class AbstractHashtable
insert
protected void insert(int key,
java.lang.Object value)
throws AbstractHashtable.HashtableOverflowException
- Throws:
AbstractHashtable.HashtableOverflowException
hasEqualKeys
protected boolean hasEqualKeys(Int2ObjectHashMap other)
rehash
protected int rehash(int iVal)
hash
protected static int hash(int i)
<oXygen/>
XML Editor
provides support for editing and debugging XQuery
expressions against the eXist XML Database.