Class MappingMethodUtils
java.lang.Object
org.mapstruct.ap.internal.model.source.MappingMethodUtils
Utility class for mapping methods.
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEnumMapping(Method method) Checks if the providedmethodis for enum mapping.
-
Method Details
-
isEnumMapping
Checks if the providedmethodis for enum mapping. A Method is an Enum Mapping method when the- source parameter type and result type are enum types
- source parameter type is a String and result type is an enum type
- source parameter type is a enum type and result type is a String
- Parameters:
method- to check- Returns:
trueif the method is for enum mapping,falseotherwise
-