Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.common.collections
Class ClassMap<T>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<Class<?>,T>
          extended by org.nuxeo.common.collections.ClassMap<T>
All Implemented Interfaces:
Serializable, Cloneable, Map<Class<?>,T>

public class ClassMap<T>
extends HashMap<Class<?>,T>

A Class keyed map sensitive to class hierarchy. This map provides an additional method find(Class) that can be used to lookup a class compatible to the given one depending on the class hierarchy.

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
ClassMap()
           
 
Method Summary
 T find(Class<?> 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
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ClassMap

public ClassMap()
Method Detail

find

public T find(Class<?> key)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.