com.levigo.util.base.collections
Class IntHashtable<V>

java.lang.Object
  extended by java.util.Dictionary<Integer,V>
      extended by com.levigo.util.base.collections.IntHashtable<V>
All Implemented Interfaces:
Cloneable

public class IntHashtable<V>
extends Dictionary<Integer,V>
implements Cloneable


Constructor Summary
IntHashtable()
           
IntHashtable(int initialCapacity)
           
IntHashtable(int initialCapacity, float loadFactor)
           
 
Method Summary
 void clear()
           
 Object clone()
           
 boolean contains(Object value)
           
 boolean containsKey(int key)
           
 Enumeration<V> elements()
           
 V get(int key)
           
 V get(Object okey)
           
 boolean isEmpty()
           
 Enumeration<Integer> keys()
           
 V put(Integer okey, V value)
           
 V put(int key, V value)
           
protected  void rehash()
           
 V remove(int key)
           
 V remove(Object okey)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntHashtable

public IntHashtable(int initialCapacity,
                    float loadFactor)

IntHashtable

public IntHashtable(int initialCapacity)

IntHashtable

public IntHashtable()
Method Detail

size

public int size()
Specified by:
size in class Dictionary<Integer,V>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class Dictionary<Integer,V>

keys

public Enumeration<Integer> keys()
Specified by:
keys in class Dictionary<Integer,V>

elements

public Enumeration<V> elements()
Specified by:
elements in class Dictionary<Integer,V>

contains

public boolean contains(Object value)

containsKey

public boolean containsKey(int key)

get

public V get(int key)

get

public V get(Object okey)
Specified by:
get in class Dictionary<Integer,V>

rehash

protected void rehash()

put

public V put(int key,
             V value)

put

public V put(Integer okey,
             V value)
Specified by:
put in class Dictionary<Integer,V>

remove

public V remove(int key)

remove

public V remove(Object okey)
Specified by:
remove in class Dictionary<Integer,V>

clear

public void clear()

clone

public Object clone()
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.