org.joni.util
Class ObjHash<K,V>

java.lang.Object
  extended by org.joni.util.ObjHash<K,V>
All Implemented Interfaces:
java.lang.Iterable<V>

public final class ObjHash<K,V>
extends java.lang.Object


Nested Class Summary
static class ObjHash.OniObjHashEntry<K,V>
           
 
Field Summary
protected  int size
           
protected  org.joni.util.Hash.OniHashEntry<V>[] table
           
 
Constructor Summary
ObjHash()
           
 
Method Summary
protected static int bucketIndex(int h, int length)
           
protected  void checkResize()
           
 V delete(K key)
           
 org.joni.util.Hash.OniHashIterator entryIterator()
           
 V get(K key)
           
protected static int hashValue(int h)
           
 java.util.Iterator<V> iterator()
           
 V put(K key, V value)
           
 void putDirect(K key, V value)
           
protected  void resize(int newCapacity)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected org.joni.util.Hash.OniHashEntry<V>[] table

size

protected int size
Constructor Detail

ObjHash

public ObjHash()
Method Detail

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 © 2010. All Rights Reserved.