E
- is the generic type of the elements contained in this map.public class SimpleClassHierarchyMap<E> extends AbstractClassHierarchyMap<E>
AbstractClassHierarchyMap
.Constructor and Description |
---|
SimpleClassHierarchyMap()
The constructor.
|
SimpleClassHierarchyMap(MapFactory<Map> mapFactory)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
E |
put(Class<?> type,
E element)
This method registers the given
element for the given type . |
get, isAccepted, isPreferable
public SimpleClassHierarchyMap()
public SimpleClassHierarchyMap(MapFactory<Map> mapFactory)
mapFactory
- is the factory used to create the internal Map
.public E put(Class<?> type, E element)
AbstractClassHierarchyMap
element
for the given type
. Unlike a regular Map
this
method will also recursively put the given element
for all super-classes
and
super-interfaces
of the given type
.put
in class AbstractClassHierarchyMap<E>
type
- is the Class
used as key to associate the given element
.element
- is the element to put.type
and has NOW been replaced with
element
.Map.put(Object, Object)
Copyright © 2001–2016 mmm-Team. All rights reserved.