Class MappingMethodUtils


  • public final class MappingMethodUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MappingMethodUtils()
      Hide default constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isEnumMapping​(Method method)
      Checks if the provided method is for enum mapping.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MappingMethodUtils

        private MappingMethodUtils()
        Hide default constructor.
    • Method Detail

      • isEnumMapping

        public static boolean isEnumMapping​(Method method)
        Checks if the provided method is for enum mapping. A Method is an Enum Mapping method when the
        1. source parameter type and result type are enum types
        2. source parameter type is a String and result type is an enum type
        3. source parameter type is a enum type and result type is a String
        Parameters:
        method - to check
        Returns:
        true if the method is for enum mapping, false otherwise