Package ru.sergkorot.dynamic.util
Class RegexpUtils
java.lang.Object
ru.sergkorot.dynamic.util.RegexpUtils
- Author:
- Sergey Korotaev Util is used for transforming string by pattern to list strings with strings for further paging
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontransformToArrayFieldsNames(String fieldsNames) transforming string by pattern to list strings with strings for further paging
-
Field Details
-
REGEXP_DELETE_ALL_WHITESPACES
Regexp pattern to remove all spaces- See Also:
-
REGEXP_VALIDATION_SORT_BY_VALUES
Regexp pattern corresponding to the example: "-id,name,-hello".- See Also:
-
-
Constructor Details
-
RegexpUtils
public RegexpUtils()
-
-
Method Details
-
transformToArrayFieldsNames
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
-