Package pygar.documents
Class SimpleXmlMatcher.ComparableRange
java.lang.Object
pygar.documents.SimpleXmlMatcher.ComparableRange
- All Implemented Interfaces:
java.lang.Comparable<SimpleXmlMatcher.ComparableRange>
- Enclosing class:
- SimpleXmlMatcher
public class SimpleXmlMatcher.ComparableRange extends java.lang.Object implements java.lang.Comparable<SimpleXmlMatcher.ComparableRange>
The ComparableRange class describes ranges of real value and introduces
the idea of comparison based on overlap. Two ranges compare as "equal"
if they overlap. Otherwise we return the order of the ranges along the
real line. Note that this interpretation of equality is different than
one expects for scalar values.
-
Method Summary
Modifier and Type Method Description int
compareTo(SimpleXmlMatcher.ComparableRange o)
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<SimpleXmlMatcher.ComparableRange>
-