org.joni.util
Class IntHash<V>

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

public class IntHash<V>
extends java.lang.Object


Nested Class Summary
static class IntHash.OniIntHashEntry<V>
           
 
Field Summary
protected  int size
           
protected  org.joni.util.Hash.OniHashEntry<V>[] table
           
 
Constructor Summary
IntHash()
           
IntHash(int size)
           
 
Method Summary
protected static int bucketIndex(int h, int length)
           
protected  void checkResize()
           
 V delete(int key)
           
 org.joni.util.Hash.OniHashIterator entryIterator()
           
 V get(int key)
           
protected static int hashValue(int h)
           
 java.util.Iterator<V> iterator()
           
 V put(int key, V value)
           
 void putDirect(int 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

IntHash

public IntHash()

IntHash

public IntHash(int size)
Method Detail

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.