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​(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​(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​(java.lang.String... sources)
        Deprecated.
        Parameters:
        sources - the sources
        Returns:
        converted match patterns