org.apache.maven.shared.utils.io
Class MatchPatterns
java.lang.Object
org.apache.maven.shared.utils.io.MatchPatterns
public class MatchPatterns
- extends Object
A list of patterns to be matched
- Author:
- Kristian Rosenvold
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
matches
public boolean matches(@Nonnull
String name,
boolean isCaseSensitive)
- Checks these MatchPatterns against a specified string.
Uses far less string tokenization than any of the alternatives.
- Parameters:
name
- The name to look forisCaseSensitive
- If the comparison is case sensitive
- Returns:
- true if any of the supplied patterns match
matchesPatternStart
public boolean matchesPatternStart(@Nonnull
String name,
boolean isCaseSensitive)
from
public static MatchPatterns from(@Nonnull
String... sources)
Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.