Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.memoire.fu
Class FuHashtableFast  view FuHashtableFast download FuHashtableFast.java

java.lang.Object
  extended bycom.memoire.fu.FuHashtableFast

public final class FuHashtableFast
extends java.lang.Object

A fast hashtable not synchronized and using == as test.


Nested Class Summary
private static class FuHashtableFast.Entry
           
private static class FuHashtableFast.Enumerator
           
 
Field Summary
private  int count
           
private  float factor
           
private  FuHashtableFast.Entry[] table
           
private  int threshold
           
 
Constructor Summary
FuHashtableFast()
           
FuHashtableFast(int _capacity)
           
FuHashtableFast(int _capacity, float _factor)
           
 
Method Summary
 void clear()
           
 boolean contains(java.lang.Object _value)
           
 boolean containsKey(java.lang.Object _key)
           
 java.util.Enumeration elements()
           
 java.lang.Object get(java.lang.Object _key)
           
 boolean isEmpty()
           
 java.util.Enumeration keys()
           
static void main(java.lang.String[] args)
           
 java.lang.Object put(java.lang.Object _key, java.lang.Object _value)
           
private  void rehash()
           
 java.lang.Object remove(java.lang.Object key)
           
 int size()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

table

private FuHashtableFast.Entry[] table

count

private int count

threshold

private int threshold

factor

private float factor
Constructor Detail

FuHashtableFast

public FuHashtableFast(int _capacity,
                       float _factor)

FuHashtableFast

public FuHashtableFast(int _capacity)

FuHashtableFast

public FuHashtableFast()
Method Detail

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)