T
- the target type of the conversionpublic class UserToUserDataConverter<T extends UserData> extends PropertyableToListItemConverter<User,T>
Constructor and Description |
---|
UserToUserDataConverter(Class<T> clazz,
boolean includeProperties,
Converter<Tag,TagData> tagConverter)
Create a new converter
|
Modifier and Type | Method and Description |
---|---|
void |
convert(User source,
T target)
Convert the source into the provided target object
|
convert, create
public UserToUserDataConverter(Class<T> clazz, boolean includeProperties, Converter<Tag,TagData> tagConverter)
clazz
- the class of the target typeincludeProperties
- whether to add the blog properties to the result. The property key will be
constructed as follows <groupKey>.<propertyKey>tagConverter
- the converter to use for converting the tags. If null the tags won't be added to
the result.public void convert(User source, T target)
PojoTargetConverter
convert
in class PropertyableToListItemConverter<User,T extends UserData>
source
- the source objecttarget
- the target objectCopyright © 2019 Communote team. All rights reserved.