org.jcodings.util
Class Hash<V>
java.lang.Object
org.jcodings.util.Hash<V>
- All Implemented Interfaces:
- Iterable<V>
- Direct Known Subclasses:
- BytesHash, CaseInsensitiveBytesHash, IntArrayHash, IntHash, ObjHash
public abstract class Hash<V>
- extends Object
- implements Iterable<V>
Field Summary |
protected org.jcodings.util.Hash.HashEntry<V> |
head
|
protected int |
size
|
protected org.jcodings.util.Hash.HashEntry<V>[] |
table
|
Constructor Summary |
Hash()
|
Hash(int size)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
protected org.jcodings.util.Hash.HashEntry<V>[] table
size
protected int size
head
protected org.jcodings.util.Hash.HashEntry<V> head
Hash
public Hash()
Hash
public Hash(int size)
init
protected abstract void init()
size
public final int size()
checkResize
protected final void checkResize()
resize
protected final void resize(int newCapacity)
bucketIndex
protected static int bucketIndex(int h,
int length)
hashValue
protected static int hashValue(int h)
iterator
public Iterator<V> iterator()
- Specified by:
iterator
in interface Iterable<V>
entryIterator
public Hash.HashEntryIterator entryIterator()
Copyright © 2011. All Rights Reserved.