|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<K,Vector<V>>
schmitzm.lang.HashtableWithCollisionList<K,V>
public class HashtableWithCollisionList<K,V>
Diese Klasse erweitert die normale Hash-Tabelle um Kollisionslisten. Pro Hashtable-Key koennen somit mehrere Werte gespeichert werden.
Constructor Summary | |
---|---|
HashtableWithCollisionList()
Erzeugt eine neue Hash-Tabelle. |
Method Summary | |
---|---|
void |
add(K key,
V value)
Fuegt der Hash-Tabelle ein Objekt hinzu. |
Vector<V> |
put(K key,
Vector<V> value)
Ersetzt eine komplette Kollisionsliste fuer einen Key. |
Vector<V> |
remove(Object key)
Entfernt eine komplette Kollisionsliste zu einem Key. |
Object |
remove(Object key,
Object value)
Entfernt ein objekt aus der Hash-Tabelle. |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, putAll, rehash, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HashtableWithCollisionList()
Method Detail |
---|
public void add(K key, V value)
key
- Der Hashtable-Keyvalue
- Wertpublic Vector<V> put(K key, Vector<V> value)
put
in interface Map<K,Vector<V>>
put
in class Hashtable<K,Vector<V>>
key
- Der Hashtable-Keyvalue
- Kollisionsliste
null
public Vector<V> remove(Object key)
remove
in interface Map<K,Vector<V>>
remove
in class Hashtable<K,Vector<V>>
key
- Der Hashtable-Key
null
public Object remove(Object key, Object value)
key
- Der Hashtable-Key
null
falls das Objekt
nicht in der Hash-Tabelle gespeichert war
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |