java.nio.filejava.nio.file.DirectoryStream.Filter<T> and related classes@Deprecated public class MatchPattern extends Object
Describes a match target for SelectorUtils.
Significantly more efficient than using strings, since re-evaluation and re-tokenizing is avoided.
| Modifier and Type | Method and Description | 
|---|---|
static MatchPattern | 
fromString(String source)
Deprecated.  
  | 
String[] | 
getTokenizedPathString()
Deprecated.  
  | 
boolean | 
matchPath(String str,
         boolean isCaseSensitive)
Deprecated.  
  | 
boolean | 
matchPatternStart(String str,
                 boolean isCaseSensitive)
Deprecated.  
  | 
boolean | 
startsWith(String string)
Deprecated.  
  | 
public boolean matchPath(String str, boolean isCaseSensitive)
str - The string to match for.isCaseSensitive - case sensitive true false otherwise.public boolean matchPatternStart(@Nonnull String str, boolean isCaseSensitive)
str - The string to check.isCaseSensitive - Check case sensitive or not.public String[] getTokenizedPathString()
public boolean startsWith(String string)
string - The part which will be checked to start with.public static MatchPattern fromString(String source)
source - The source.Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.