org.nuxeo.common.collections
Class ClassMap<T>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<Class<?>,T>
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
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
ClassMap
public ClassMap()
find
public T find(Class<?> key)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.