org.joni.util
Class ObjHash<K,V>
java.lang.Object
org.joni.util.ObjHash<K,V>
- All Implemented Interfaces:
- java.lang.Iterable<V>
public final class ObjHash<K,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
ObjHash
public ObjHash()
put
public V put(K key,
V value)
putDirect
public void putDirect(K key,
V value)
get
public V get(K key)
delete
public V delete(K 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.