Class DefaultValueConverter.RegexConverter

java.lang.Object
net.jazdw.rql.converter.DefaultValueConverter.RegexConverter
All Implemented Interfaces:
ValueConverter<Pattern>
Enclosing class:
DefaultValueConverter

public static class DefaultValueConverter.RegexConverter extends Object implements ValueConverter<Pattern>
Converts a string to a case-sensitive regex Pattern
  • Field Details

  • Constructor Details

    • RegexConverter

      public RegexConverter()
  • Method Details

    • convert

      public Pattern convert(String textValue)
      Description copied from interface: ValueConverter
      Converts a string value to its Java representation
      Specified by:
      convert in interface ValueConverter<Pattern>
      Parameters:
      textValue - percent-decoded value string (e.g. john, 2015-01-01 or 30)
      Returns:
      converted value