Interface CompareUtil
-
- All Known Implementing Classes:
CompareUtil.AntCompareUtil
,CompareUtil.PlainCompareUtil
,CompareUtil.RegExpCompareUtil
public interface CompareUtil
Base interface for the compare-algorithms.- Author:
- Robert Sandell <robert.sandell@sonyericsson.com>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface 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.
-
Method Summary
All Methods Instance Methods Abstract 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
boolean matches(String pattern, String str)
Tells if the given pattern matches the string according to the implemented comparer/algorithm.- Parameters:
pattern
- the pattern to use.str
- the string to match on.- Returns:
- true if the string matches the pattern.
-
getName
String getName()
Returns the human-readable name of the util.- Returns:
- the name.
-
getOperator
char getOperator()
Returns the operator name of the util.- Returns:
- the operator.
-
-