public class HashtableBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
_mask |
int |
_maximumSize |
int |
_size |
HashtableIntEntry[] |
_table |
int |
_tableSize |
| Modifier | Constructor and Description |
|---|---|
|
HashtableBase() |
protected |
HashtableBase(DeepClone cloneOnlyCtor) |
|
HashtableBase(int size) |
| Modifier and Type | Method and 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.
|
public int _tableSize
public int _mask
public int _maximumSize
public int _size
public HashtableIntEntry[] _table
public HashtableBase(int size)
public HashtableBase()
protected HashtableBase(DeepClone cloneOnlyCtor)
cloneOnlyCtor - public void clear()
public int size()
protected HashtableIntEntry findWithSameKey(HashtableIntEntry newEntry)
protected int entryIndex(HashtableIntEntry entry)
protected void putEntry(HashtableIntEntry newEntry)
protected HashtableIterator hashtableIterator()
public Iterator4 keys()
public Iterable4 values()
public Iterator4 valuesIterator()
public java.lang.String toString()
toString in class java.lang.Objectprotected void removeEntry(HashtableIntEntry predecessor, HashtableIntEntry entry)
protected java.lang.Object removeObjectEntry(int intKey,
java.lang.Object objectKey)
protected java.lang.Object removeLongEntry(int intKey,
long longKey)
protected java.lang.Object removeIntEntry(int key)