S - D - public static class BidirectionalConverter.Reversed<S,D> extends BidirectionalConverter<S,D>
BidirectionalConverter.Reversed<S,D>destinationType, mapperFacade, sourceType| Constructor and Description |
|---|
Reversed(BidirectionalConverter<D,S> bidi) |
| 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. |
S |
convertFrom(D source,
Type<S> destinationType,
MappingContext mappingContext) |
D |
convertTo(S source,
Type<D> destinationType,
MappingContext mappingContext) |
Type<Object> |
getAType() |
Type<Object> |
getBType() |
BidirectionalConverter<D,S> |
reverse() |
void |
setMapperFacade(MapperFacade mapper)
Store an instance of the current MapperFacade which may be used in
mapping of nested types.
|
String |
toString() |
convertequals, hashCodepublic Reversed(BidirectionalConverter<D,S> bidi)
public D convertTo(S source, Type<D> destinationType, MappingContext mappingContext)
convertTo in class BidirectionalConverter<S,D>public S convertFrom(D source, Type<S> destinationType, MappingContext mappingContext)
convertFrom in class BidirectionalConverter<S,D>public BidirectionalConverter<D,S> reverse()
reverse in class BidirectionalConverter<S,D>public boolean canConvert(Type<?> sourceType, Type<?> destinationType)
ConvertersourceType to destinationType.canConvert in interface Converter<Object,Object>canConvert in class BidirectionalConverter<S,D>public void setMapperFacade(MapperFacade mapper)
ConvertersetMapperFacade in interface Converter<Object,Object>setMapperFacade in class CustomConverter<Object,Object>mapper - the current MapperFacadepublic Type<Object> getAType()
getAType in interface MappedTypePair<Object,Object>getAType in class CustomConverter<Object,Object>public Type<Object> getBType()
getBType in interface MappedTypePair<Object,Object>getBType in class CustomConverter<Object,Object>public String toString()
toString in class BidirectionalConverter<S,D>Copyright © 2019 Glasnost. All rights reserved.