public class PatternUtil extends Object
Note: This class is not a part of the public API and is subject to change. Do not use it in your own code
Modifier and Type | Method and Description |
---|---|
static boolean |
isMatch(String value,
List<String> patterns)
Gets whether the given string matches at least one of the provided patterns
|
static boolean |
isMatch(String value,
String pattern)
Gets whether the given string matches the provided pattern
|
static boolean |
isPattern(String value)
Gets whether the given string represents a pattern
|
static String |
strip(String value,
String pattern)
Removes the provided pattern fragment from the original string
|
public static boolean isMatch(String value, List<String> patterns)
value
- A nullable string valuepatterns
- A nullable collection of patternspublic static boolean isMatch(String value, String pattern)
value
- A nullable string valuepattern
- A nullable string patternpublic static boolean isPattern(String value)
value
- A nullable string valueCopyright © 2024 Exadel, Inc.. All rights reserved.