S
- the source type of the conversionT
- the target type of the conversionpublic abstract class PojoTargetConverter<S,T> extends Object implements Converter<S,T>
Constructor and Description |
---|
PojoTargetConverter(Class<T> clazz)
Create a new converter
|
Modifier and Type | Method and Description |
---|---|
T |
convert(S source)
Converts the source object which is of type S into an object of type T
|
abstract void |
convert(S source,
T target)
Convert the source into the provided target object
|
protected T |
create()
Create an instance of the target type
|
public T convert(S source)
Converter
public abstract void convert(S source, T target)
source
- the source objecttarget
- the target objectprotected T create()
Copyright © 2019 Communote team. All rights reserved.