|
|||||||||
| Home >> All >> org >> cantaloop >> tools >> [ collection overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.cantaloop.tools.collection
Class CHashMap

java.lang.Objectjava.util.AbstractMap
java.util.HashMap
org.cantaloop.tools.collection.CHashMap
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class CHashMap
- extends java.util.HashMap
A Map that provides some useful methods.
- Version:
- @version@ ($Revision: 1.3 $)
| Nested Class Summary |
| Nested classes inherited from class java.util.HashMap |
|
| Nested classes inherited from class java.util.AbstractMap |
|
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Field Summary |
| Fields inherited from class java.util.HashMap |
|
| Fields inherited from class java.util.AbstractMap |
|
| Constructor Summary | |
CHashMap()
|
|
CHashMap(int initialCapacity)
|
|
CHashMap(int initialCapacity,
float loadFactor)
|
|
CHashMap(java.util.Map t)
|
|
| Method Summary | |
java.lang.Object |
get(java.lang.Object key,
java.lang.Object defaultValue)
Returns the value to which this map maps the specified key. |
java.lang.Object |
getIfContained(java.lang.Object key,
java.lang.Object defaultValue)
Returns the value to which this map maps the specified key. |
| 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 |
CHashMap
public CHashMap()
CHashMap
public CHashMap(int initialCapacity)
CHashMap
public CHashMap(int initialCapacity,
float loadFactor)
CHashMap
public CHashMap(java.util.Map t)
| Method Detail |
get
public java.lang.Object get(java.lang.Object key, java.lang.Object defaultValue)
- Returns the value to which this map maps the specified key.
If this value is
null,defaultValueis returned.
getIfContained
public java.lang.Object getIfContained(java.lang.Object key, java.lang.Object defaultValue)
- Returns the value to which this map maps the specified key.
If the map does not contain the key,
defaultValueis returned.
|
|||||||||
| Home >> All >> org >> cantaloop >> tools >> [ collection overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC