org.omnaest.utils.structure.map
Class IdentityLinkedHashMap<K,V>

java.lang.Object
  extended by org.omnaest.utils.structure.map.MapAbstract<K,V>
      extended by org.omnaest.utils.structure.map.IdentityLinkedHashMap<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
Serializable, Map<K,V>

public class IdentityLinkedHashMap<K,V>
extends MapAbstract<K,V>

Similar to an LinkedHashMap but using the identity comparison "object == element" for resolution of keys and values.

Author:
Omnaest
See Also:
IdentityHashMap, IdentityArrayList, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  List<K> keyList
           
protected  Map<K,V> map
           
protected  List<V> valueList
           
 
Constructor Summary
IdentityLinkedHashMap()
           
 
Method Summary
 V get(Object key)
           
 Set<K> keySet()
           
 V put(K key, V value)
           
 V remove(Object key)
           
 Collection<V> values()
           
 
Methods inherited from class org.omnaest.utils.structure.map.MapAbstract
clear, containsKey, containsValue, entrySet, isEmpty, putAll, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

map

protected Map<K,V> map

keyList

protected List<K> keyList

valueList

protected List<V> valueList
Constructor Detail

IdentityLinkedHashMap

public IdentityLinkedHashMap()
Method Detail

get

public V get(Object key)

put

public V put(K key,
             V value)

remove

public V remove(Object key)

keySet

public Set<K> keySet()

values

public Collection<V> values()


Copyright © 2013. All Rights Reserved.