com.mindfusion.common
Class ExtendedHashMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by com.mindfusion.common.ExtendedHashMap<K,V>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.util.Map.Entry<K,V>>, java.util.Map<K,V>

public class ExtendedHashMap<K,V>
extends java.util.HashMap<K,V>
implements java.lang.Iterable<java.util.Map.Entry<K,V>>

Represents a HashMap which provides a tryGetValue method.

See Also:
Serialized Form

Constructor Summary
ExtendedHashMap()
           
ExtendedHashMap(int initialCapacity)
           
ExtendedHashMap(int initialCapacity, float loadFactor)
           
 
Method Summary
 java.util.Iterator<java.util.Map.Entry<K,V>> iterator()
           
 boolean tryGetValue(java.lang.Object key, ByRef<V> value)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, 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
equals, hashCode
 

Constructor Detail

ExtendedHashMap

public ExtendedHashMap()

ExtendedHashMap

public ExtendedHashMap(int initialCapacity)

ExtendedHashMap

public ExtendedHashMap(int initialCapacity,
                       float loadFactor)
Method Detail

tryGetValue

public boolean tryGetValue(java.lang.Object key,
                           ByRef<V> value)

iterator

public java.util.Iterator<java.util.Map.Entry<K,V>> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.util.Map.Entry<K,V>>