public class GlobMatcher
extends java.lang.Object
Constructor and Description |
---|
GlobMatcher(java.lang.String pattern)
Constructor.
|
GlobMatcher(java.lang.String pattern,
boolean caseInsensitive)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Predicate1<java.lang.String> |
asPredicate()
Get this matcher as a predicate.
|
boolean |
isMatching(java.lang.String str)
Is a given string matching this pattern?
|
static void |
main(java.lang.String[] args) |
java.lang.String |
toString()
Returns a string representation of the object.
|
public GlobMatcher(@NotNull java.lang.String pattern)
pattern
- patternpublic GlobMatcher(@NotNull java.lang.String pattern, boolean caseInsensitive)
pattern
- patterncaseInsensitive
- make the matcher case-insensitive?@NotNull public Predicate1<java.lang.String> asPredicate()
true
if this pattern matchespublic boolean isMatching(@NotNull java.lang.String str)
str
- the stringtrue
if the string is matching, false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)