Class MatchPatterns


  • @Deprecated
    public class MatchPatterns
    extends java.lang.Object
    Deprecated.
    use java.nio.file.DirectoryStream.Filter<T> and related classes
    A 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.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 for
        isCaseSensitive - 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.