S - the source typeD - the destination typepublic abstract class CustomConverter<S,D> extends Object implements Converter<S,D>
| Modifier and Type | Field and Description |
|---|---|
protected Type<D> |
destinationType |
protected MapperFacade |
mapperFacade |
protected Type<S> |
sourceType |
| Constructor and Description |
|---|
CustomConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Type<?> sourceType,
Type<?> destinationType)
Answers whether this converter can be used to handle the conversion of
sourceType to destinationType. |
boolean |
equals(Object other) |
Type<S> |
getAType() |
Type<D> |
getBType() |
int |
hashCode() |
void |
setMapperFacade(MapperFacade mapper)
Store an instance of the current MapperFacade which may be used in
mapping of nested types.
|
String |
toString() |
protected MapperFacade mapperFacade
public boolean canConvert(Type<?> sourceType, Type<?> destinationType)
ConvertersourceType to destinationType.canConvert in interface Converter<S,D>public void setMapperFacade(MapperFacade mapper)
ConvertersetMapperFacade in interface Converter<S,D>mapper - the current MapperFacadepublic Type<S> getAType()
getAType in interface MappedTypePair<S,D>public Type<D> getBType()
getBType in interface MappedTypePair<S,D>Copyright © 2017 Glasnost. All Rights Reserved.