|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.util.hashtable.AbstractHashtable
org.exist.util.hashtable.SequencedLongHashMap
| Nested Class Summary | |
static class |
SequencedLongHashMap.Entry
Represents an entry in the map. |
protected class |
SequencedLongHashMap.SequencedLongIterator
|
| Nested classes inherited from class org.exist.util.hashtable.AbstractHashtable |
AbstractHashtable.HashtableIterator, AbstractHashtable.HashtableOverflowException |
| Field Summary | |
protected long[] |
keys
|
protected SequencedLongHashMap.Entry[] |
values
|
| Fields inherited from class org.exist.util.hashtable.AbstractHashtable |
items, maxRehash, REMOVED, tabSize |
| Constructor Summary | |
SequencedLongHashMap()
|
|
SequencedLongHashMap(int iSize)
|
|
| Method Summary | |
void |
clear()
Clear the map. |
java.lang.Object |
get(long key)
Returns the value for key or null if the key is not in the map. |
SequencedLongHashMap.Entry |
getFirstEntry()
Returns the first entry added to the map. |
protected static int |
hash(long l)
|
protected SequencedLongHashMap.Entry |
insert(long key,
java.lang.Object value)
|
java.util.Iterator |
iterator()
Returns an iterator over all keys in the order in which they were inserted. |
void |
put(long key,
java.lang.Object value)
Add a new entry for the key. |
java.lang.Object |
remove(long key)
Remove the entry specified by key from the map. |
void |
removeEntry(SequencedLongHashMap.Entry entry)
Remove an entry. |
java.lang.Object |
removeFirst()
Remove the first entry added to the map. |
java.util.Iterator |
valueIterator()
Returns an iterator over all values in the order in which they were inserted. |
| Methods inherited from class org.exist.util.hashtable.AbstractHashtable |
getMaxRehash, isPrime, nextPrime, size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected long[] keys
protected SequencedLongHashMap.Entry[] values
| Constructor Detail |
public SequencedLongHashMap()
public SequencedLongHashMap(int iSize)
| Method Detail |
public void put(long key,
java.lang.Object value)
key - value -
protected SequencedLongHashMap.Entry insert(long key,
java.lang.Object value)
public java.lang.Object get(long key)
key -
public SequencedLongHashMap.Entry getFirstEntry()
public java.lang.Object remove(long key)
key -
public java.lang.Object removeFirst()
public void removeEntry(SequencedLongHashMap.Entry entry)
entry - public void clear()
protected static final int hash(long l)
public java.util.Iterator iterator()
iterator in class AbstractHashtablepublic java.util.Iterator valueIterator()
valueIterator in class AbstractHashtable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||