com.jalios.util
Class ObjectLongHashMap
java.lang.Object
  
java.util.AbstractMap<K,V>
      
java.util.HashMap
          
com.jalios.util.ObjectLongHashMap
- All Implemented Interfaces: 
 - Serializable, Cloneable, Map
 
public class ObjectLongHashMap
- extends HashMap
 
- Since:
 
  - jcms-5.5.0
 
- Version:
 
  - $Revision: 27751 $
 
- Author:
 
  - Olivier Jaquemet 
 
- See Also:
 - Serialized Form
 
 
 
 
 
| 
Method Summary | 
 void | 
clear()
 
            | 
 long | 
getLong(Object key,
        long defaultValue)
 
          Return the long value associated with given object, or the given
 default value if object is not in this map. | 
 long | 
getMax()
 
          Return maximum value stored in this map. | 
 void | 
put(Object key,
    long value)
 
          Associates the specified value with the specified key in this map. | 
 Object | 
remove(Object key)
 
            | 
 
| Methods inherited from class java.util.HashMap | 
clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, size, values | 
 
 
 
 
REVISION
public static final String REVISION
- See Also:
 - Constant Field Values
 
ObjectLongHashMap
public ObjectLongHashMap()
remove
public Object remove(Object key)
- Specified by:
 remove in interface Map- Overrides:
 remove in class HashMap
 
 
clear
public void clear()
- Specified by:
 clear in interface Map- Overrides:
 clear in class HashMap
 
 
put
public void put(Object key,
                long 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.
 
 
getLong
public long getLong(Object key,
                    long defaultValue)
- Return the long 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 valuedefaultValue - the default value to use if object not present.
- Returns:
 - long value associated to object
 
 
 
getMax
public long getMax()
- Return maximum value stored in this map.
- Returns:
 - maximum long value
 
 
 
Copyright © 2001-2010 Jalios SA. All Rights Reserved.