Class CompareUtil.PlainCompareUtil
- java.lang.Object
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.CompareUtil.PlainCompareUtil
-
- All Implemented Interfaces:
CompareUtil
- Enclosing interface:
- CompareUtil
public static class CompareUtil.PlainCompareUtil extends Object implements CompareUtil
Compares with pattern.equals(str).
-
-
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 Constructor Description PlainCompareUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
matches
public boolean matches(String pattern, String str)
Description copied from interface:CompareUtil
Tells if the given pattern matches the string according to the implemented comparer/algorithm.- Specified by:
matches
in interfaceCompareUtil
- Parameters:
pattern
- the pattern to use.str
- the string to match on.- Returns:
- true if the string matches the pattern.
-
getName
public String getName()
Description copied from interface:CompareUtil
Returns the human-readable name of the util.- Specified by:
getName
in interfaceCompareUtil
- Returns:
- the name.
-
getOperator
public char getOperator()
Description copied from interface:CompareUtil
Returns the operator name of the util.- Specified by:
getOperator
in interfaceCompareUtil
- Returns:
- the operator.
-
-