Class DefaultStringToTypeConverter

java.lang.Object
net.croz.nrich.search.converter.DefaultStringToTypeConverter
All Implemented Interfaces:
net.croz.nrich.search.api.converter.StringToTypeConverter<Object>

@Order public class DefaultStringToTypeConverter extends Object implements net.croz.nrich.search.api.converter.StringToTypeConverter<Object>
  • Constructor Details

    • DefaultStringToTypeConverter

      public DefaultStringToTypeConverter(List<String> dateFormatList, List<String> decimalNumberFormatList, String booleanTrueRegexPattern, String booleanFalseRegexPattern)
  • Method Details

    • convert

      public Object convert(String value, Class<?> requiredType)
      Specified by:
      convert in interface net.croz.nrich.search.api.converter.StringToTypeConverter<Object>
    • supports

      public boolean supports(Class<?> requiredType)
      Specified by:
      supports in interface net.croz.nrich.search.api.converter.StringToTypeConverter<Object>