|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
S
- source typeD
- destination typepublic interface ConditionalConverter<S,D>
Converter that converts supported source objects to instances of destination type D
.
Method Summary | |
---|---|
boolean |
supports(Class<?> sourceType,
Class<?> destinationType)
Indicates whether the Converter supports conversion from the sourceType to the
destinationType . |
boolean |
supportsSource(Class<?> sourceType)
Returns whether the Converter supports conversion from the sourceType . |
boolean |
verifiesSource()
Returns whether the Converter verifies the source type when supports is called. |
Methods inherited from interface org.modelmapper.Converter |
---|
convert |
Method Detail |
---|
boolean supports(Class<?> sourceType, Class<?> destinationType)
sourceType
to the
destinationType
. Implementors should only return true for source and destination types
that satisfy S
and D
.
sourceType
- to matchdestinationType
- to match
boolean supportsSource(Class<?> sourceType)
sourceType
. Used only for
converters where verifiesSource()
is false
.
boolean verifiesSource()
supports
is called.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |