net.sf.diaz
Class IndexedMapImpl<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<K,V>
              extended by net.sf.diaz.IndexedMapImpl<K,V>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<K,V>, IndexedMap<K,V>

 class IndexedMapImpl<K,V>
extends java.util.LinkedHashMap<K,V>
implements IndexedMap<K,V>

Author:
Sean C. Sullivan

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
private  java.util.List<V> values
           
 
Constructor Summary
IndexedMapImpl()
           
IndexedMapImpl(int initialCapacity)
           
 
Method Summary
 V get(int i)
           
 V put(K key, V value)
           
 V remove(java.lang.Object key)
           
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, putAll, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, size, values
 

Field Detail

values

private java.util.List<V> values
Constructor Detail

IndexedMapImpl

public IndexedMapImpl()

IndexedMapImpl

public IndexedMapImpl(int initialCapacity)
Method Detail

put

public V put(K key,
             V value)
Specified by:
put in interface java.util.Map<K,V>
Overrides:
put in class java.util.HashMap<K,V>

remove

public V remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map<K,V>
Overrides:
remove in class java.util.HashMap<K,V>

get

public V get(int i)
Specified by:
get in interface IndexedMap<K,V>


Copyright © 2005 diaz.sourceforge.net. All Rights Reserved.