Class CompareUtil.AntCompareUtil
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.CompareUtil.AntCompareUtil
- All Implemented Interfaces:
CompareUtil
- Enclosing interface:
- CompareUtil
Compares based on Ant-style paths.
like
my/**/something*.git-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.CompareUtil
CompareUtil.AntCompareUtil, CompareUtil.PlainCompareUtil, CompareUtil.RegExpCompareUtil -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AntCompareUtil
public AntCompareUtil()
-
-
Method Details
-
matches
Description copied from interface:CompareUtilTells if the given pattern matches the string according to the implemented comparer/algorithm.- Specified by:
matchesin interfaceCompareUtil- Parameters:
pattern- the pattern to use.str- the string to match on.- Returns:
- true if the string matches the pattern.
-
getName
Description copied from interface:CompareUtilReturns the human-readable name of the util.- Specified by:
getNamein interfaceCompareUtil- Returns:
- the name.
-
getOperator
public char getOperator()Description copied from interface:CompareUtilReturns the operator name of the util.- Specified by:
getOperatorin interfaceCompareUtil- Returns:
- the operator.
-