Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.cantaloop.tools.collection
Class CHashMap  view CHashMap download CHashMap.java

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byorg.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, defaultValue is 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, defaultValue is returned.