Class Operator.DefaultStringComparator

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultStringComparator​(boolean ce, boolean ccs)
      Constructs a DefaultStringComparator object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.String caption,
                              java.lang.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.