Class Operator.DefaultStringComparator

    • Constructor Detail

      • DefaultStringComparator

        public DefaultStringComparator​(boolean ce,
                                       boolean ccs)
        Constructs a DefaultStringComparator object.
        Parameters:
        ce - Compare exactly. If false, text can be a substring of caption.
        ccs - Compare case sensitively.
    • Method Detail

      • equals

        public boolean equals​(String caption,
                              String match)
        Compares a caption with a match using switched passed into constructor.
        Specified by:
        equals in interface Operator.StringComparator
        Parameters:
        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.
        Returns:
        true if text and pattern matches.