02/28/2005
 

com.epicentric.common
Class OrderedHashtable

java.lang.Object
  |
  +--com.epicentric.common.OrderedHashtable
All Implemented Interfaces:
Serializable

Deprecated. as of version 4.5, to be removed in 8.0 or later. No replacement. If using J2SE 1.4 or later, recommend looking at the LinkedHashMap.

public class OrderedHashtable
extends Object
implements Serializable

An ordered hashtable.

See Also:
Serialized Form

Constructor Summary
OrderedHashtable()
          Deprecated.  
 
Method Summary
 Enumeration elements()
          Deprecated. Return enumeration of my items, in order.
 boolean equals(Object obj)
          Deprecated.  
 Object get(String key)
          Deprecated. Return keyed item, or null if item doesn't exist.
 boolean isEmpty()
          Deprecated. Return true if we have zero key/value mappings
 Enumeration keys()
          Deprecated. Return enumeration of my keys, in order.
 void moveDown(String key)
          Deprecated. Move item up within the group.
 void moveUp(String key)
          Deprecated. Move keyed item up within the group.
 void put(String key, Object item)
          Deprecated. Add the keyed object to the end of my set of items.
 Object remove(String key)
          Deprecated. Remove the keyed item from my set of items.
 void removeAllElements()
          Deprecated. Removes all elements from the hashtable.
 int size()
          Deprecated. Return the number of stored key/value pairs.
 void sortKeys()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderedHashtable

public OrderedHashtable()
Deprecated. 
Method Detail

put

public void put(String key,
                Object item)
Deprecated. 
Add the keyed object to the end of my set of items. If the key is already used, it replaces the item of the same key, and moves it to the end.

remove

public Object remove(String key)
Deprecated. 
Remove the keyed item from my set of items. Returns the item removed. Return null if item doesn't exist.

moveUp

public void moveUp(String key)
Deprecated. 
Move keyed item up within the group. Does nothing if item doesn't exist. Does nothing if item is at top of list.

moveDown

public void moveDown(String key)
Deprecated. 
Move item up within the group. Does nothing if item doesn't exist. Does nothing if item is at bottom of list.

get

public Object get(String key)
Deprecated. 
Return keyed item, or null if item doesn't exist.

elements

public Enumeration elements()
Deprecated. 
Return enumeration of my items, in order.

removeAllElements

public void removeAllElements()
Deprecated. 
Removes all elements from the hashtable.

keys

public Enumeration keys()
Deprecated. 
Return enumeration of my keys, in order.

size

public int size()
Deprecated. 
Return the number of stored key/value pairs.

isEmpty

public boolean isEmpty()
Deprecated. 
Return true if we have zero key/value mappings

sortKeys

public void sortKeys()
Deprecated. 

equals

public boolean equals(Object obj)
Deprecated. 
Overrides:
equals in class Object

02/28/2005
 

Copyright and Trademark Notices