com.jalios.util
Class ObjectFloatHashMap<K>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,float[]>
          extended by com.jalios.util.ObjectFloatHashMap<K>
Type Parameters:
K - any Object type
All Implemented Interfaces:
Serializable, Cloneable, Map<K,float[]>

public class ObjectFloatHashMap<K>
extends HashMap<K,float[]>

Since:
jcms-5.5.0
Version:
$Revision: 27751 $
Author:
Olivier Jaquemet
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
static String REVISION
           
 
Constructor Summary
ObjectFloatHashMap()
           
 
Method Summary
 void clear()
           
 float getFloat(K key, float defaultValue)
          Return the float value associated with given object, or the given default value if object is not in this map.
 float getMax()
          Return maximum value stored in this map.
 void put(K key, float value)
          Associates the specified value with the specified key in this map.
 float[] remove(Object key)
           
 
Methods inherited from class java.util.HashMap
clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, 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
equals, hashCode
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

ObjectFloatHashMap

public ObjectFloatHashMap()
Method Detail

remove

public float[] remove(Object key)
Specified by:
remove in interface Map<K,float[]>
Overrides:
remove in class HashMap<K,float[]>

clear

public void clear()
Specified by:
clear in interface Map<K,float[]>
Overrides:
clear in class HashMap<K,float[]>

put

public void put(K key,
                float value)
Associates the specified value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.

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

getFloat

public float getFloat(K key,
                      float defaultValue)
Return the float value associated with given object, or the given default value if object is not in this map.

Parameters:
key - the object from which to get associated value
defaultValue - the default value to use if object not present.
Returns:
float value associated to object

getMax

public float getMax()
Return maximum value stored in this map.

Returns:
maximum float value


Copyright © 2001-2010 Jalios SA. All Rights Reserved.