public class InheritableValueMap
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
_map
the mapping *
|
private java.lang.Class |
_stopClass
the stop class *
|
| Constructor and Description |
|---|
InheritableValueMap()
Use Object.class as stop class
|
InheritableValueMap(java.lang.Class stopClass) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set |
keySet()
Return the key classes
|
void |
put(java.lang.Class c,
java.lang.Object o)
Add the mapping between the class c and the object o.
|
java.lang.Object |
resolve(java.lang.Class c)
Resolve the object associated with class c
|
java.util.Collection |
resolveAll(java.lang.Class c)
Resolve all the mapping that could have apply to c in class c's inheritance hierachy
|
private java.util.Map _map
private java.lang.Class _stopClass
public InheritableValueMap()
public InheritableValueMap(java.lang.Class stopClass)
stopClass - the stop classpublic void put(java.lang.Class c,
java.lang.Object o)
c - the classo - the objectpublic java.lang.Object resolve(java.lang.Class c)
c - the classpublic final java.util.Set keySet()
public java.util.Collection resolveAll(java.lang.Class c)
c - the class