public interface CompareUtil
Modifier and Type | Interface and Description |
---|---|
static class |
CompareUtil.AntCompareUtil
Compares based on Ant-style paths.
|
static class |
CompareUtil.PlainCompareUtil
Compares with pattern.equals(str).
|
static class |
CompareUtil.RegExpCompareUtil
Compares with regular-expressions.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the human-readable name of the util.
|
char |
getOperator()
Returns the operator name of the util.
|
boolean |
matches(String pattern,
String str)
Tells if the given pattern matches the string according to the implemented comparer/algorithm.
|
boolean matches(String pattern, String str)
pattern
- the pattern to use.str
- the string to match on.String getName()
char getOperator()
Copyright © 2016–2019. All rights reserved.