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,
char[][] tokenizedNameChar,
boolean isCaseSensitive) |
boolean |
matches(String name,
String[] tokenizedName,
boolean isCaseSensitive) |
boolean |
matchesPatternStart(String name,
boolean isCaseSensitive) |
public boolean matches(String name, boolean isCaseSensitive)
Checks these MatchPatterns against a specified string.
Uses far less string tokenization than any of the alternatives.
name
- The name to look forisCaseSensitive
- If the comparison is case sensitivepublic boolean matches(String name, char[][] tokenizedNameChar, boolean isCaseSensitive)
public boolean matchesPatternStart(String name, boolean isCaseSensitive)
public static MatchPatterns from(String... sources)
public static MatchPatterns from(Iterable<String> strings)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.