Class MatchPatterns

java.lang.Object
org.apache.maven.shared.utils.io.MatchPatterns

@Deprecated public class MatchPatterns extends Object
Deprecated.
use java.nio.file.DirectoryStream.Filter<T> and related classes
A list of patterns to be matched.
Author:
Kristian Rosenvold
  • Method Details

    • matches

      public boolean matches(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 for
      isCaseSensitive - if the comparison is case sensitive
      Returns:
      true if any of the supplied patterns match
    • matchesPatternStart

      public boolean matchesPatternStart(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(String... sources)
      Deprecated.
      Parameters:
      sources - the sources
      Returns:
      converted match patterns