protected class ComposedValueConverterImpl.TargetClass2ConverterMap extends AdvancedClassHierarchyMap<ComposedValueConverterImpl.ComposedTargetTypeConverter<?>>
AdvancedClassHierarchyMap
for ComposedValueConverterImpl.ComposedTargetTypeConverter
s.Constructor and Description |
---|
TargetClass2ConverterMap()
The constructor.
|
TargetClass2ConverterMap(MapFactory<Map> mapFactory)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
getClass(ComposedValueConverterImpl.ComposedTargetTypeConverter<?> element)
This method gets the associated
type for the given element . |
protected boolean |
isAccepted(Class<?> type)
This method determines whether the given
type is accepted in the hierarchy. |
ComposedValueConverterImpl.ComposedTargetTypeConverter<?> |
put(Class<?> type,
ComposedValueConverterImpl.ComposedTargetTypeConverter<?> element)
This method registers the given
element for the given type . |
isPreferable, put
get
public TargetClass2ConverterMap()
public TargetClass2ConverterMap(MapFactory<Map> mapFactory)
mapFactory
- is the factory used to create the internal Map
.protected Class<?> getClass(ComposedValueConverterImpl.ComposedTargetTypeConverter<?> element)
AdvancedClassHierarchyMap
type
for the given element
.getClass
in class AdvancedClassHierarchyMap<ComposedValueConverterImpl.ComposedTargetTypeConverter<?>>
element
- is the element for which the type
is requested.Class
of the given element
.public ComposedValueConverterImpl.ComposedTargetTypeConverter<?> put(Class<?> type, ComposedValueConverterImpl.ComposedTargetTypeConverter<?> 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<ComposedValueConverterImpl.ComposedTargetTypeConverter<?>>
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)
protected boolean isAccepted(Class<?> type)
AbstractClassHierarchyMap
type
is accepted in the hierarchy. marker-interfaces
).isAccepted
in class AbstractClassHierarchyMap<ComposedValueConverterImpl.ComposedTargetTypeConverter<?>>
type
- is the Class
reflecting the type to check.true
if the given type
should be accepted, false
to ignore type
.Copyright © 2001–2016 mmm-Team. All rights reserved.