Package org.htmlunit.xpath.objects
Class GreaterThanOrEqualComparator
java.lang.Object
org.htmlunit.xpath.objects.Comparator
org.htmlunit.xpath.objects.GreaterThanOrEqualComparator
Compare strings or numbers for greater than or equal.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
compareNumbers
(double n1, double n2) Compare two numbers(package private) boolean
compareStrings
(XString s1, XString s2) Compare two strings
-
Constructor Details
-
GreaterThanOrEqualComparator
GreaterThanOrEqualComparator()
-
-
Method Details
-
compareStrings
Compare two strings- Specified by:
compareStrings
in classComparator
- Parameters:
s1
- First string to compares2
- Second String to compare- Returns:
- Whether the strings are equal or not
-
compareNumbers
boolean compareNumbers(double n1, double n2) Compare two numbers- Specified by:
compareNumbers
in classComparator
- Parameters:
n1
- First number to comparen2
- Second number to compare- Returns:
- Whether the numbers are equal or not
-