org.apache.xpath.objects
Class LessThanOrEqualComparator
java.lang.Object
org.apache.xpath.objects.Comparator
org.apache.xpath.objects.LessThanOrEqualComparator
- class LessThanOrEqualComparator
- extends Comparator
Compare strings or numbers for less than or equal.
Method Summary |
(package private) boolean |
compareNumbers(double n1,
double n2)
Compare two numbers for less than or equal. |
(package private) boolean |
compareStrings(XMLString s1,
XMLString s2)
Compare two strings for less than or equal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LessThanOrEqualComparator
LessThanOrEqualComparator()
compareStrings
boolean compareStrings(XMLString s1,
XMLString s2)
- Compare two strings for less than or equal.
- Specified by:
compareStrings
in class Comparator
- Parameters:
s1
- First string to compares2
- Second String to compare
- Returns:
- true if s1 is less than or equal to s2
compareNumbers
boolean compareNumbers(double n1,
double n2)
- Compare two numbers for less than or equal.
- Specified by:
compareNumbers
in class Comparator
- Parameters:
n1
- First number to comparen2
- Second number to compare
- Returns:
- true if n1 is less than or equal to n2