public abstract class HashCommon<Key> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
HashCommon.NotifyEmpty
A hashed structure may become empty as a side-effect of a .remove on one
of its iterators: a container can request notification of this by passing
a
NotifyEmpty object in when the iterator is constructed,
and its emptied method is called when the bunch
becomes empty. |
| Modifier and Type | Field and Description |
|---|---|
int |
capacity
The capacity (length) of the key array.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getItemForTestingAt(int i)
Answer the item at index
i of keys. |
ExtendedIterator<Key> |
keyIterator() |
ExtendedIterator<Key> |
keyIterator(HashCommon.NotifyEmpty container) |
void |
remove(Key key)
Remove the object
key from this hash's keys if it
is present (if it's absent, do nothing). |
public Object getItemForTestingAt(int i)
i of keys. This
method is for testing purposes only.public void remove(Key key)
key from this hash's keys if it
is present (if it's absent, do nothing). If a key is removed, the
removeAssociatedValues will be invoked. If a key
is moved, the moveAssociatedValues method will
be called.public ExtendedIterator<Key> keyIterator()
public ExtendedIterator<Key> keyIterator(HashCommon.NotifyEmpty container)
Licenced under the Apache License, Version 2.0