public final class RegexHelper
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.List<java.util.regex.Pattern> |
compilePatternsFromList(java.util.List<java.lang.String> list) |
Compiles a list of regex into a list of patterns.
|
static boolean |
isMatch(java.util.regex.Pattern pattern,
java.lang.String subject) |
Simple commodity method (also designed to increase readability of source
code, and to decrease import in the calling class).
|
public static java.util.List<java.util.regex.Pattern> compilePatternsFromList(java.util.List<java.lang.String> list)
list - the regex listpublic static boolean isMatch(java.util.regex.Pattern pattern,
java.lang.String subject)
pattern - a compiled regex patternsubject - a String to matchtrue if there is a match; false otherwiseCopyright © 2002–2018 PMD. All rights reserved.