Package org.codehaus.plexus.util
Class MatchPatterns
java.lang.Object
org.codehaus.plexus.util.MatchPatterns
A list of patterns to be matched
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchPatterns
static MatchPatterns
private static MatchPattern[]
getMatchPatterns
(Iterable<String> items) boolean
Checks these MatchPatterns against a specified string.boolean
boolean
boolean
matchesPatternStart
(String name, boolean isCaseSensitive)
-
Field Details
-
patterns
-
-
Constructor Details
-
MatchPatterns
-
-
Method Details
-
matches
Checks these MatchPatterns against a specified string.
Uses far less string tokenization than any of the alternatives.
- Parameters:
name
- The name to look forisCaseSensitive
- If the comparison is case sensitive- Returns:
- true if any of the supplied patterns match
-
matches
-
matches
-
matchesPatternStart
-
from
-
from
-
getMatchPatterns
-