Operator.StringComparator
public static class Operator.DefaultStringComparator extends java.lang.Object implements Operator.StringComparator
Constructor | Description |
---|---|
DefaultStringComparator(boolean ce,
boolean ccs) |
Constructs a DefaultStringComparator object.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.String caption,
java.lang.String match) |
Compares a caption with a match using switched passed into constructor.
|
public DefaultStringComparator(boolean ce, boolean ccs)
ce
- Compare exactly. If false, text can be a substring of caption.ccs
- Compare case sensitively.public boolean equals(java.lang.String caption, java.lang.String match)
equals
in interface Operator.StringComparator
caption
- String to be compared with match. Method returns false, if parameter is null.match
- Sample to compare with. Method returns true, if parameter is null.