Class ValueHandlerUtil

  • public class ValueHandlerUtil
    extends Object
    • Field Detail


        public static String ARGUMENT_KEY
    • Constructor Detail

      • ValueHandlerUtil

        public ValueHandlerUtil()
    • Method Detail

      • getEnum

        public static <T extends Enum<T>> T getEnum​(Class<T> enumClass,
                                                    Object input,
                                                    String parameterName)
        Get the valid enum value from a configuration parameter if possible.
        enumClass - the enum to use
        input - the configuration input to search the enumClass
        parameterName - the name to report to the user if no valid enum values are found
        the enum value or null
      • booleanValueHandler

        public static Boolean booleanValueHandler​(Object input)