org.joni.util
Class IntHash<V>
java.lang.Object
org.joni.util.IntHash<V>
- All Implemented Interfaces:
- java.lang.Iterable<V>
public class IntHash<V>
- extends java.lang.Object
Field Summary |
protected int |
size
|
protected org.joni.util.Hash.OniHashEntry<V>[] |
table
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
protected org.joni.util.Hash.OniHashEntry<V>[] table
size
protected int size
IntHash
public IntHash()
IntHash
public IntHash(int size)
put
public V put(int key,
V value)
putDirect
public void putDirect(int key,
V value)
get
public V get(int key)
delete
public V delete(int key)
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 java.util.Iterator<V> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<V>
entryIterator
public org.joni.util.Hash.OniHashIterator entryIterator()
Copyright © {inceptionYear}-2008 null. All Rights Reserved.