de.matthiasmann.twl.utils
Class HashEntry<K,T extends HashEntry<K,T>>

java.lang.Object
  extended by de.matthiasmann.twl.utils.HashEntry<K,T>
Type Parameters:
K - type of the key
T - type of subclass
Direct Known Subclasses:
CascadedHashMap.Entry, TreeTable.NodeState

public class HashEntry<K,T extends HashEntry<K,T>>
extends java.lang.Object

Hash table building block


Field Summary
 K key
           
 
Constructor Summary
HashEntry(K key)
           
 
Method Summary
static
<K,T extends HashEntry<K,T>>
T
get(T[] table, java.lang.Object key)
           
static
<K,T extends HashEntry<K,T>>
void
insertEntry(T[] table, T newEntry)
           
static
<K,T extends HashEntry<K,T>>
T[]
maybeResizeTable(T[] table, int usedCount)
           
 T next()
           
static
<K,T extends HashEntry<K,T>>
T
remove(T[] table, java.lang.Object key)
           
static
<K,T extends HashEntry<K,T>>
void
remove(T[] table, T entry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

public final K key
Constructor Detail

HashEntry

public HashEntry(K key)
Method Detail

next

public T next()

get

public static <K,T extends HashEntry<K,T>> T get(T[] table,
                                                 java.lang.Object key)

insertEntry

public static <K,T extends HashEntry<K,T>> void insertEntry(T[] table,
                                                            T newEntry)

remove

public static <K,T extends HashEntry<K,T>> T remove(T[] table,
                                                    java.lang.Object key)

remove

public static <K,T extends HashEntry<K,T>> void remove(T[] table,
                                                       T entry)

maybeResizeTable

public static <K,T extends HashEntry<K,T>> T[] maybeResizeTable(T[] table,
                                                                int usedCount)