|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap
net.sf.morph.util.TypeMap
public class TypeMap
A map where all keys and values are of type Class. This is
accomplished by making the put(Object, Object)method convert the
key and value supplied to it to a Class object using
ClassUtils.newInstance(Object). This class is
included to ease the configuration of Morph. One example of where it is used
is in
SimpleInstantiatingReflector.setRequestedToInstantiatedTypeMap(Map).
| Constructor Summary | |
|---|---|
TypeMap()
Create a new TypeMap. |
|
TypeMap(int initialCapacity)
Create a new TypeMap. |
|
TypeMap(int initialCapacity,
float loadFactor)
Create a new TypeMap. |
|
TypeMap(java.util.Map map)
Create a new TypeMap. |
|
| Method Summary | |
|---|---|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public TypeMap()
public TypeMap(int initialCapacity)
initialCapacity -
public TypeMap(int initialCapacity,
float loadFactor)
initialCapacity - loadFactor - public TypeMap(java.util.Map map)
map - | Method Detail |
|---|
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in class java.util.HashMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||