com.generationjava.collections
Class ClassMap

java.lang.Object
  extended byorg.apache.commons.collections.ProxyMap
      extended bycom.generationjava.collections.ClassMap
All Implemented Interfaces:
Map

public class ClassMap
extends org.apache.commons.collections.ProxyMap

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 inherited from class java.util.Map
Map.Entry
 
Field Summary
 
Fields inherited from class org.apache.commons.collections.ProxyMap
map
 
Constructor Summary
ClassMap(Map m)
           
 
Method Summary
 Object get(Object key)
          Get the object from the map.
 
Methods inherited from class org.apache.commons.collections.ProxyMap
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassMap

public ClassMap(Map m)
Method Detail

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.



Copyright © 2000-2005 OSJava. All Rights Reserved.