org.xnap.util
Class MultiHashtable

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by org.xnap.util.MultiHashtable
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class MultiHashtable
extends java.util.Hashtable

Provides a 1:n Hashtable. This implementation is not complete.

See Also:
Serialized Form

Constructor Summary
MultiHashtable()
           
 
Method Summary
 boolean contains(java.lang.Object value)
           
 boolean containsValue(java.lang.Object value)
           
 java.util.Enumeration elements()
           
 java.util.List getList(java.lang.Object key)
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 void putAll(java.util.Map t)
           
 java.util.Collection values()
           
 
Methods inherited from class java.util.Hashtable
clear, clone, containsKey, entrySet, equals, get, hashCode, isEmpty, keys, keySet, rehash, remove, size, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiHashtable

public MultiHashtable()
Method Detail

contains

public boolean contains(java.lang.Object value)
Overrides:
contains in class java.util.Hashtable

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface java.util.Map
Overrides:
containsValue in class java.util.Hashtable

elements

public java.util.Enumeration elements()
Overrides:
elements in class java.util.Hashtable

getList

public java.util.List getList(java.lang.Object key)

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map
Overrides:
put in class java.util.Hashtable
Returns:
always null

putAll

public void putAll(java.util.Map t)
Specified by:
putAll in interface java.util.Map
Overrides:
putAll in class java.util.Hashtable

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map
Overrides:
values in class java.util.Hashtable


Copyright © 2001-2005 XNap Team. All Rights Reserved.