org.apache.commons.convert1.util
Class ClassMap

java.lang.Object
  extended by org.apache.commons.convert1.util.ClassMap
All Implemented Interfaces:
Map

public class ClassMap
extends Object

A map which stores objects by a key Class. When obtaining the object, it will check inheritence and interface trees to see if the Class matches.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry
 
Field Summary
protected  Map map
          Deprecated. The Map to delegate to.
 
Constructor Summary
ClassMap()
           
ClassMap(Inheritor inh)
           
 
Method Summary
 void clear()
          Deprecated. Invokes the underlying Map.clear() method.
 boolean containsKey(Object key)
          Deprecated. Invokes the underlying Map.containsKey(Object) method.
 boolean containsValue(Object value)
          Deprecated. Invokes the underlying Map.containsValue(Object) method.
 Set entrySet()
          Deprecated. Invokes the underlying Map.entrySet() method.
 boolean equals(Object m)
          Deprecated. Invokes the underlying Map.equals(Object) method.
 Object get(Object key)
          Get the object from the map.
 Inheritor getInheritor()
           
 int hashCode()
          Deprecated. Invokes the underlying Map.hashCode() method.
 boolean isEmpty()
          Deprecated. Invokes the underlying Map.isEmpty() method.
 Set keySet()
          Deprecated. Invokes the underlying Map.keySet() method.
 Object put(Object key, Object value)
          Deprecated. Invokes the underlying Map.put(Object,Object) method.
 void putAll(Map t)
          Deprecated. Invokes the underlying Map.putAll(Map) method.
 Object remove(Object key)
          Deprecated. Invokes the underlying Map.remove(Object) method.
 int size()
          Deprecated. Invokes the underlying Map.size() method.
 Collection values()
          Deprecated. Invokes the underlying Map.values() method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

protected Map map
Deprecated. 
The Map to delegate to.

Constructor Detail

ClassMap

public ClassMap()

ClassMap

public ClassMap(Inheritor inh)
Method Detail

getInheritor

public Inheritor getInheritor()

get

public Object get(Object key)
Get the object from the map. If the key is not a Class object, then it uses the Class of the object.

Specified by:
get in interface Map

clear

public void clear()
Deprecated. 
Invokes the underlying Map.clear() method.

Specified by:
clear in interface Map

containsKey

public boolean containsKey(Object key)
Deprecated. 
Invokes the underlying Map.containsKey(Object) method.

Specified by:
containsKey in interface Map

containsValue

public boolean containsValue(Object value)
Deprecated. 
Invokes the underlying Map.containsValue(Object) method.

Specified by:
containsValue in interface Map

entrySet

public Set entrySet()
Deprecated. 
Invokes the underlying Map.entrySet() method.

Specified by:
entrySet in interface Map

equals

public boolean equals(Object m)
Deprecated. 
Invokes the underlying Map.equals(Object) method.

Specified by:
equals in interface Map
Overrides:
equals in class Object

hashCode

public int hashCode()
Deprecated. 
Invokes the underlying Map.hashCode() method.

Specified by:
hashCode in interface Map
Overrides:
hashCode in class Object

isEmpty

public boolean isEmpty()
Deprecated. 
Invokes the underlying Map.isEmpty() method.

Specified by:
isEmpty in interface Map

keySet

public Set keySet()
Deprecated. 
Invokes the underlying Map.keySet() method.

Specified by:
keySet in interface Map

put

public Object put(Object key,
                  Object value)
Deprecated. 
Invokes the underlying Map.put(Object,Object) method.

Specified by:
put in interface Map

putAll

public void putAll(Map t)
Deprecated. 
Invokes the underlying Map.putAll(Map) method.

Specified by:
putAll in interface Map

remove

public Object remove(Object key)
Deprecated. 
Invokes the underlying Map.remove(Object) method.

Specified by:
remove in interface Map

size

public int size()
Deprecated. 
Invokes the underlying Map.size() method.

Specified by:
size in interface Map

values

public Collection values()
Deprecated. 
Invokes the underlying Map.values() method.

Specified by:
values in interface Map


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.