com.cysols.iodef.element
Class OrderlyMap

java.lang.Object
  extended by com.cysols.iodef.element.OrderlyMap
All Implemented Interfaces:
Serializable

public class OrderlyMap
extends Object
implements Serializable

This class has HashMap instance and ArrayList instance.

Author:
tandai
See Also:
Serialized Form

Constructor Summary
OrderlyMap()
          Default constructor
 
Method Summary
 Object get(int index)
           
 Object get(Object key)
           
 int getIndex(Object key)
          This method return index value
 Object getKey(int index)
           
 List getKeyList()
           
 Set keySet()
          Returns a set view of the keys contained in this map.
 void put(int index, Object key, Object value)
          Associates the specified value with the specified key in this map.
 void put(Object key, Object value)
          Associates the specified value with the specified key in this map.
 void remove(Object key)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderlyMap

public OrderlyMap()
Default constructor

Method Detail

keySet

public Set keySet()
Returns a set view of the keys contained in this map.

Returns:
a set view of the keys contained in this map.

put

public void put(Object key,
                Object value)
Associates the specified value with the specified key in this map. and adds the key to list.

Parameters:
key - key with which the specified value is to be associated.
value - value to be associated with the specified key.

put

public void put(int index,
                Object key,
                Object value)
Associates the specified value with the specified key in this map. and adds the key to list.

Parameters:
index - index to put in this key list.
key - key with which the specified value is to be associated.
value - value to be associated with the specified key.

get

public Object get(Object key)

getKeyList

public List getKeyList()

get

public Object get(int index)

getKey

public Object getKey(int index)

getIndex

public int getIndex(Object key)
This method return index value

Parameters:
key -
Returns:
index vlaue at the specified position in this list.

remove

public void remove(Object key)

size

public int size()