public class MatchPatterns extends Object
Modifier and Type | Method and Description |
---|---|
static MatchPatterns |
from(Iterable<String> strings) |
static MatchPatterns |
from(String... sources) |
boolean |
matches(String name,
boolean isCaseSensitive)
Checks these MatchPatterns against a specified string.
|
boolean |
matches(String name,
String[] tokenizedName,
boolean isCaseSensitive) |
boolean |
matchesPatternStart(String name,
boolean isCaseSensitive) |
public boolean matches(String name, boolean isCaseSensitive)
name
- The name to look forisCaseSensitive
- If the comparison is case sensitivepublic boolean matchesPatternStart(String name, boolean isCaseSensitive)
public static MatchPatterns from(String... sources)
public static MatchPatterns from(Iterable<String> strings)
Copyright © 2001-2015 Codehaus. All Rights Reserved.