public class MapToBean
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
classMetadataName |
protected boolean |
declared |
protected JsonParserBase |
jsonParser |
Constructor and Description |
---|
MapToBean(JsonParserBase jsonParser,
java.lang.String classMetadataName) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
convert(java.lang.Object value,
java.lang.Class targetType) |
protected <K,V> java.util.Map<K,V> |
generifyMap(java.util.Map<java.lang.Object,java.lang.Object> map,
java.lang.Class<K> keyType,
java.lang.Class<V> valueType)
Change map elements to match key and value types.
|
java.lang.Object |
map2bean(java.util.Map map,
java.lang.Class targetType)
Converts map to target type.
|
protected boolean declared
protected final JsonParserBase jsonParser
protected final java.lang.String classMetadataName
public MapToBean(JsonParserBase jsonParser, java.lang.String classMetadataName)
public java.lang.Object map2bean(java.util.Map map, java.lang.Class targetType)
protected <K,V> java.util.Map<K,V> generifyMap(java.util.Map<java.lang.Object,java.lang.Object> map, java.lang.Class<K> keyType, java.lang.Class<V> valueType)
protected java.lang.Object convert(java.lang.Object value, java.lang.Class targetType)
Copyright © 2003-present Jodd Team