dsto.dfc.collections
Class TypeMap
java.lang.Object
dsto.dfc.collections.TypeMap
- Direct Known Subclasses:
- LazyTypeMap
public class TypeMap
- extends Object
A map-like container that maps from classes to values. The search for
a value for a class first looks at the class, then it superclasses, and
then at its interfaces. If none of the specific classes and interfaces
match, then the mapping for java.lang.Object is returned.
- Version:
- $Revision$
- Author:
- mpp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeMap
public TypeMap()
- Constructor for TypeMap.
TypeMap
public TypeMap(TypeMap copy)
put
public void put(Class type,
Object value)
put
public void put(String type,
Object value)
get
public Object get(Class type)
remove
public void remove(Class type)
remove
public void remove(String typeName)
Copyright © 2008 Commonwealth of Australia