org.apache.xpath.objects
Class NotEqualComparator

java.lang.Object
  extended byorg.apache.xpath.objects.Comparator
      extended byorg.apache.xpath.objects.NotEqualComparator

class NotEqualComparator
extends Comparator

Compare strings or numbers for non-equality.


Constructor Summary
(package private) NotEqualComparator()
           
 
Method Summary
(package private)  boolean compareNumbers(double n1, double n2)
          Compare two numbers for non-equality.
(package private)  boolean compareStrings(XMLString s1, XMLString s2)
          Compare two strings for non-equality.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotEqualComparator

NotEqualComparator()
Method Detail

compareStrings

boolean compareStrings(XMLString s1,
                       XMLString s2)
Compare two strings for non-equality.

Specified by:
compareStrings in class Comparator
Parameters:
s1 - First string to compare
s2 - Second String to compare
Returns:
true if s1 is not equal to s2

compareNumbers

boolean compareNumbers(double n1,
                       double n2)
Compare two numbers for non-equality.

Specified by:
compareNumbers in class Comparator
Parameters:
n1 - First number to compare
n2 - Second number to compare
Returns:
true if n1 is not equal to n2