| 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 |
Mapper.convertToBean(Object value,
TypeInformation typeInformation)
Creates an object of the given type from the given value.
|
Object |
MapperImpl.convertToBean(Object value,
TypeInformation beanType) |
protected Object |
MapperImpl.createBeanMatchingType(TypeInformation typeInformation)
Creates an object matching the given type information.
|
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) |
protected Collection |
MapperImpl.createCollectionMatchingType(TypeInformation typeInformation)
Creates a Collection of a type which can be assigned to the provided type.
|
protected Map |
MapperImpl.createMapMatchingType(TypeInformation typeInformation)
Creates a Map of a type which can be assigned to the provided type.
|
static MappingContextImpl |
MappingContextImpl.createRoot(TypeInformation typeInformation)
Creates an initial context (used at the start of a mapping process).
|
protected MappingContext |
MapperImpl.createRootMappingContext(TypeInformation beanType) |
| Constructor and Description |
|---|
MappingContextImpl(String path,
TypeInformation typeInformation) |
| 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 |
BeanPropertyDescriptionImpl.getTypeInformation() |
TypeInformation |
BeanPropertyDescription.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.
|
| 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–2018 The AuthMe Team. All rights reserved.