Package com.db4o.foundation
Class HashtableBase
- java.lang.Object
-
- com.db4o.foundation.HashtableBase
-
- Direct Known Subclasses:
Hashtable4
,IdentityHashtable4
,IdentitySet4
public class HashtableBase extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int
_mask
int
_maximumSize
int
_size
HashtableIntEntry[]
_table
int
_tableSize
-
Constructor Summary
Constructors Modifier Constructor Description HashtableBase()
HashtableBase(int size)
protected
HashtableBase(DeepClone cloneOnlyCtor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
protected int
entryIndex(HashtableIntEntry entry)
protected HashtableIntEntry
findWithSameKey(HashtableIntEntry newEntry)
protected HashtableIterator
hashtableIterator()
Iterator4
keys()
protected void
putEntry(HashtableIntEntry newEntry)
protected void
removeEntry(HashtableIntEntry predecessor, HashtableIntEntry entry)
protected java.lang.Object
removeIntEntry(int key)
protected java.lang.Object
removeLongEntry(int intKey, long longKey)
protected java.lang.Object
removeObjectEntry(int intKey, java.lang.Object objectKey)
int
size()
java.lang.String
toString()
Iterable4
values()
Iterator4
valuesIterator()
Iterates through all the values.
-
-
-
Field Detail
-
_tableSize
public int _tableSize
-
_mask
public int _mask
-
_maximumSize
public int _maximumSize
-
_size
public int _size
-
_table
public HashtableIntEntry[] _table
-
-
Constructor Detail
-
HashtableBase
public HashtableBase(int size)
-
HashtableBase
public HashtableBase()
-
HashtableBase
protected HashtableBase(DeepClone cloneOnlyCtor)
- Parameters:
cloneOnlyCtor
-
-
-
Method Detail
-
clear
public void clear()
-
size
public int size()
-
findWithSameKey
protected HashtableIntEntry findWithSameKey(HashtableIntEntry newEntry)
-
entryIndex
protected int entryIndex(HashtableIntEntry entry)
-
putEntry
protected void putEntry(HashtableIntEntry newEntry)
-
hashtableIterator
protected HashtableIterator hashtableIterator()
-
keys
public Iterator4 keys()
-
values
public Iterable4 values()
-
valuesIterator
public Iterator4 valuesIterator()
Iterates through all the values.- Returns:
- value iterator
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
removeEntry
protected void removeEntry(HashtableIntEntry predecessor, HashtableIntEntry entry)
-
removeObjectEntry
protected java.lang.Object removeObjectEntry(int intKey, java.lang.Object objectKey)
-
removeLongEntry
protected java.lang.Object removeLongEntry(int intKey, long longKey)
-
removeIntEntry
protected java.lang.Object removeIntEntry(int key)
-
-