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(@Nonnull 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(@Nonnull 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 String... sources)
      Deprecated.
      Parameters:
      sources - The sources
      Returns:
      Converted match patterns.