public abstract class Hash<V> extends Object implements Iterable<V>
| Modifier and Type | Class and Description |
|---|---|
static class |
Hash.HashEntry<V> |
class |
Hash.HashEntryIterator |
class |
Hash.HashIterator |
| Modifier and Type | Field and Description |
|---|---|
protected Hash.HashEntry<V> |
head |
protected int |
size |
protected Hash.HashEntry<V>[] |
table |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
bucketIndex(int h,
int length) |
protected void |
checkResize() |
Hash.HashEntryIterator |
entryIterator() |
protected static int |
hashValue(int h) |
protected abstract void |
init() |
Iterator<V> |
iterator() |
protected void |
resize(int newCapacity) |
int |
size() |
protected Hash.HashEntry<V>[] table
protected int size
protected Hash.HashEntry<V> head
protected abstract void init()
public final int size()
protected final void checkResize()
protected final void resize(int newCapacity)
protected static int bucketIndex(int h,
int length)
protected static int hashValue(int h)
public Hash.HashEntryIterator entryIterator()
Copyright © 2016. All Rights Reserved.