org.xins.common.collections
Class ChainedMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended byorg.xins.common.collections.ChainedMap
All Implemented Interfaces:
Cloneable, Map, Serializable

public class ChainedMap
extends AbstractMap
implements Cloneable, Serializable

This class provides a Map that stores the key/value pairs in the order that they were added to the Map. If an entry already exists, the key/pair entry will be put at the same position as the old one.

Since:
XINS 1.3.0
Version:
$Revision: 1.20 $ $Date: 2009/04/18 13:04:29 $
Author:
Anthony Goubard
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Constructor Summary
ChainedMap()
          Creates a new instance of ChainedMap.
 
Method Summary
 Object clone()
           
 Set entrySet()
           
 Object put(Object key, Object value)
           
 Collection values()
           
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChainedMap

public ChainedMap()
Creates a new instance of ChainedMap.

Method Detail

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map

values

public Collection values()
Specified by:
values in interface Map

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map

clone

public Object clone()


See http://www.xins.org/.