public class MatchPatterns extends Object
Modifier and Type | Method and Description |
---|---|
static MatchPatterns |
from(String... sources) |
boolean |
matches(String name,
boolean isCaseSensitive)
Checks these MatchPatterns against a specified string.
|
boolean |
matchesPatternStart(String name,
boolean isCaseSensitive) |
public boolean matches(@Nonnull String name, boolean isCaseSensitive)
name
- The name to look forisCaseSensitive
- If the comparison is case sensitivepublic boolean matchesPatternStart(@Nonnull String name, boolean isCaseSensitive)
public static MatchPatterns from(@Nonnull String... sources)
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.