XppDom. Comparator can trace the XPath where the comparison failed.
| Modifier and Type | Field and Description |
|---|---|
| private final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| public | |
| public | XppDomComparator(final ThreadLocal<T>
the reference for the XPath xpath)Creates a new Xpp3DomComparator object with XPath identification. |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(final Object
the first object to be compared. dom1, final Object the second object to be compared. dom2)Implements java. |
| private int |
| xpath | back to summary |
|---|---|
| private final ThreadLocal<T> xpath | |
| XppDomComparator | back to summary |
|---|---|
| public XppDomComparator() Creates a new Xpp3DomComparator object.
| |
| XppDomComparator | back to summary |
|---|---|
| public XppDomComparator(final ThreadLocal<T> xpath) Creates a new Xpp3DomComparator object with XPath identification.
| |
| compare | back to summary |
|---|---|
| public int compare(final Object dom1, final Object dom2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| compareInternal | back to summary |
|---|---|
| private int compareInternal(final XppDom dom1, final XppDom dom2, final StringBuffer xpath, final int count) | |