First, creates a new Map of the requested targetType with a size equal to the size of the source Map. Then copies each element in the source map to the target map. Will perform a conversion from the source maps's parameterized K,V types to the target map's parameterized types K,V if necessary.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ConversionService |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private boolean | |
| public Object | convert(Object
the source object to convert (may be source, TypeDescriptor null)the type descriptor of the field we are converting from sourceType, TypeDescriptor the type descriptor of the field we are converting to targetType)Implements org. TypeDescriptor.
|
| private Object | |
| private Object | |
| public Set | getConvertibleTypes()
Implements org. |
| public boolean | matches(TypeDescriptor
the type descriptor of the field we are converting from sourceType, TypeDescriptor the type descriptor of the field we are converting to targetType)Implements org. sourceType to targetType currently under
consideration be selected?
|
| conversionService | back to summary |
|---|---|
| private final ConversionService conversionService | |
| MapToMapConverter | back to summary |
|---|---|
| public MapToMapConverter(ConversionService conversionService) | |
| canConvertKey | back to summary |
|---|---|
| private boolean canConvertKey(TypeDescriptor sourceType, TypeDescriptor targetType) | |
| canConvertValue | back to summary |
|---|---|
| private boolean canConvertValue(TypeDescriptor sourceType, TypeDescriptor targetType) | |
| convert | back to summary |
|---|---|
| public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Implements org. Doc from org. Convert the source object to the targetType described by the
| |
| convertKey | back to summary |
|---|---|
private Object convertKey(Object sourceKey, TypeDescriptor sourceType, TypeDescriptor targetType)
| |
| convertValue | back to summary |
|---|---|
private Object convertValue(Object sourceValue, TypeDescriptor sourceType, TypeDescriptor targetType)
| |
| getConvertibleTypes | back to summary |
|---|---|
| public Set Implements org. Doc from org. Return the source and target types that this converter can convert between. Each entry is a convertible source-to-target type pair. For
| |
| matches | back to summary |
|---|---|
| public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) Implements org. Doc from org. Should the conversion from
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| key | back to summary |
|---|---|
| private final Object key
| |
| value | back to summary |
|---|---|
| private final Object value
| |
| MapEntry | back to summary |
|---|---|
| public MapEntry(Object key, Object value) | |
| addToMap | back to summary |
|---|---|
| public void addToMap(Map<Object, Object> map) | |