java.lang.Object
com.memoire.fu.FuHashtableFast
- public final class FuHashtableFast
- extends java.lang.Object
A fast hashtable not synchronized and using == as test.
table
private FuHashtableFast.Entry[] table
count
private int count
threshold
private int threshold
factor
private float factor
FuHashtableFast
public FuHashtableFast(int _capacity,
float _factor)
FuHashtableFast
public FuHashtableFast(int _capacity)
FuHashtableFast
public FuHashtableFast()
size
public final int size()
isEmpty
public final boolean isEmpty()
keys
public final java.util.Enumeration keys()
elements
public final java.util.Enumeration elements()
contains
public final boolean contains(java.lang.Object _value)
containsKey
public final boolean containsKey(java.lang.Object _key)
get
public final java.lang.Object get(java.lang.Object _key)
rehash
private final void rehash()
put
public final java.lang.Object put(java.lang.Object _key,
java.lang.Object _value)
remove
public final java.lang.Object remove(java.lang.Object key)
clear
public final void clear()
toString
public final java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
main
public static void main(java.lang.String[] args)