Class RegexpUtils

java.lang.Object
ru.sergkorot.dynamic.util.RegexpUtils

public final class RegexpUtils extends Object
Author:
Sergey Korotaev Util is used for transforming string by pattern to list strings with strings for further paging
  • Field Details

    • REGEXP_DELETE_ALL_WHITESPACES

      public static final String REGEXP_DELETE_ALL_WHITESPACES
      Regexp pattern to remove all spaces
      See Also:
    • REGEXP_VALIDATION_SORT_BY_VALUES

      public static final String REGEXP_VALIDATION_SORT_BY_VALUES
      Regexp pattern corresponding to the example: "-id,name,-hello".
      See Also:
  • Constructor Details

    • RegexpUtils

      public RegexpUtils()
  • Method Details

    • transformToArrayFieldsNames

      public static List<String> transformToArrayFieldsNames(String fieldsNames)
      transforming string by pattern to list strings with strings for further paging
      Parameters:
      fieldsNames - - string with fields for sorting
      Returns:
      - list with fields for sorting