| Modifier and Type | Method and Description |
|---|---|
default TypeInformation |
MappingContext.getGenericTypeInfoOrFail(int index)
Convenience method: gets the generic type info for the given index and ensures that the generic type information
exists and that it can be converted into a safe-to-write class.
|
TypeInformation |
MappingContext.getTypeInformation() |
TypeInformation |
MappingContextImpl.getTypeInformation() |
| Modifier and Type | Method and Description |
|---|---|
Object |
MapperImpl.convertToBean(Object value,
TypeInformation beanType,
ConvertErrorRecorder errorRecorder) |
Object |
Mapper.convertToBean(Object value,
TypeInformation typeInformation,
ConvertErrorRecorder errorRecorder)
Creates an object of the given type from the given value.
|
MappingContext |
MappingContext.createChild(String name,
TypeInformation typeInformation)
Creates a child context with the given path addition ("name") and type information.
|
MappingContext |
MappingContextImpl.createChild(String subPath,
TypeInformation typeInformation) |
static MappingContextImpl |
MappingContextImpl.createRoot(TypeInformation typeInformation,
ConvertErrorRecorder errorRecorder)
Creates an initial context (used at the start of a mapping process).
|
protected MappingContext |
MapperImpl.createRootMappingContext(TypeInformation beanType,
ConvertErrorRecorder errorRecorder) |
| Constructor and Description |
|---|
MappingContextImpl(String path,
TypeInformation typeInformation,
ConvertErrorRecorder errorRecorder) |
| Modifier and Type | Method and Description |
|---|---|
Object |
AbstractLeafValueHandler.convert(TypeInformation typeInformation,
Object value) |
Object |
CombiningLeafValueHandler.convert(TypeInformation typeInformation,
Object value) |
Object |
LeafValueHandler.convert(TypeInformation typeInformation,
Object value)
Converts the given value to the given class, if possible.
|
| Modifier and Type | Method and Description |
|---|---|
protected TypeInformation |
BeanDescriptionFactoryImpl.createTypeInfo(PropertyDescriptor descriptor) |
TypeInformation |
BeanPropertyDescription.getTypeInformation() |
TypeInformation |
BeanPropertyDescriptionImpl.getTypeInformation() |
| Constructor and Description |
|---|
BeanPropertyDescriptionImpl(String name,
TypeInformation typeInformation,
Method getter,
Method setter)
Constructor.
|
| Constructor and Description |
|---|
BeanProperty(TypeInformation beanType,
String path,
T defaultValue,
Mapper mapper)
Constructor.
|
| Constructor and Description |
|---|
BeanPropertyType(TypeInformation beanType,
Mapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
static TypeInformation |
TypeInformation.fromField(Field field)
Creates a new TypeInformation instance based on the given field's type.
|
TypeInformation |
TypeInformation.getGenericType(int index)
"Unwraps" the type and returns the generic type information for the given index, provided the wrapped type
contains generic information.
|
Copyright © 2016–2021 The AuthMe Team. All rights reserved.