Package org.apache.maven.shared.utils.io
Class MatchPatterns
- java.lang.Object
-
- org.apache.maven.shared.utils.io.MatchPatterns
-
@Deprecated public class MatchPatterns extends java.lang.Object
Deprecated.usejava.nio.filejava.nio.file.DirectoryStream.Filter<T>
and related classesA list of patterns to be matched- Author:
- Kristian Rosenvold
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MatchPatterns
from(java.lang.String... sources)
Deprecated.boolean
matches(java.lang.String name, boolean isCaseSensitive)
Deprecated.Checks these MatchPatterns against a specified string.boolean
matchesPatternStart(java.lang.String name, boolean isCaseSensitive)
Deprecated.
-
-
-
Method Detail
-
matches
public boolean matches(@Nonnull java.lang.String name, boolean isCaseSensitive)
Deprecated.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
-
matchesPatternStart
public boolean matchesPatternStart(@Nonnull java.lang.String name, boolean isCaseSensitive)
Deprecated.- Parameters:
name
- The name.isCaseSensitive
- being case sensetive.- Returns:
- true if any of the supplied patterns match start.
-
from
public static MatchPatterns from(@Nonnull java.lang.String... sources)
Deprecated.- Parameters:
sources
- The sources- Returns:
- Converted match patterns.
-
-