public class ClassMap<T> extends Object implements Map<Class,T>
Constructor and Description |
---|
ClassMap() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
cacheContainsKey(Object key)
cacheContainsKey
|
void |
clear()
clear
|
boolean |
containsKey(Object key)
containsKey
|
boolean |
containsValue(Object object)
containsValue
|
Set<Map.Entry<Class,T>> |
entrySet()
entrySet
|
boolean |
equals(Object object)
equals
|
T |
get(Object key)
get
|
static List<Class> |
getAncestry(Class c)
getAncestry
Walks superclass and interface graph, superclasses first, then
interfaces, to compute an ancestry list.
|
protected Map<Class,T> |
getCache()
cache
|
protected Map<Class,T> |
getInternalMap()
internalMap
|
int |
hashCode()
hashCode
|
protected void |
initCache()
initCache
|
boolean |
isEmpty()
isEmpty
|
Set<Class> |
keySet()
keySet
|
T |
put(Class key,
T value)
put
|
void |
putAll(Map map)
putAll
|
T |
remove(Object object)
remove
|
int |
size()
size
|
String |
toString()
toString
|
Collection<T> |
values()
values
|
public boolean containsKey(Object key)
containsKey
in interface Map<Class,T>
protected boolean cacheContainsKey(Object key)
public boolean containsValue(Object object)
containsValue
in interface Map<Class,T>
public boolean equals(Object object)
public int hashCode()
protected void initCache()
public static List<Class> getAncestry(Class c)