NodeComparator is a Comparatorof Node instances which
is capable of comparing Nodes for equality based on their values.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Node
the first object to be compared. n1, Node the second object to be compared. n2)Implements java. |
| public int | compare(Document
the first object to be compared. n1, Document the second object to be compared. n2)Implements java. |
| public int | compare(Element
the first object to be compared. n1, Element the second object to be compared. n2)Implements java. |
| public int | compare(Attribute
the first object to be compared. n1, Attribute the second object to be compared. n2)Implements java. |
| public int | compare(QName
the first object to be compared. n1, QName the second object to be compared. n2)Implements java. |
| public int | compare(Namespace
the first object to be compared. n1, Namespace the second object to be compared. n2)Implements java. |
| public int | compare(CharacterData
the first object to be compared. t1, CharacterData the second object to be compared. t2)Implements java. |
| public int | compare(DocumentType
the first object to be compared. o1, DocumentType the second object to be compared. o2)Implements java. |
| public int | compare(Entity
the first object to be compared. n1, Entity the second object to be compared. n2)Implements java. |
| public int | compare(ProcessingInstruction
the first object to be compared. n1, ProcessingInstruction the second object to be compared. n2)Implements java. |
| public int | compare(String
the first object to be compared. o1, String the second object to be compared. o2)Implements java. |
| public int |
| NodeComparator | back to summary |
|---|---|
| public NodeComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Node n1, Node n2) 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 | |
| compare | back to summary |
|---|---|
| public int compare(Document n1, Document n2) 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 | |
| compare | back to summary |
|---|---|
| public int compare(Element n1, Element n2) 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 | |
| compare | back to summary |
|---|---|
| public int compare(Attribute n1, Attribute n2) 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 | |
| compare | back to summary |
|---|---|
| public int compare(QName n1, QName n2) 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 | |
| compare | back to summary |
|---|---|
| public int compare(Namespace n1, Namespace n2) 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 | |
| compare | back to summary |
|---|---|
| public int compare(CharacterData t1, CharacterData t2) 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
| |
| compare | back to summary |
|---|---|
| public int compare(DocumentType o1, DocumentType o2) 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
| |
| compare | back to summary |
|---|---|
| public int compare(Entity n1, Entity n2) 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 | |
| compare | back to summary |
|---|---|
| public int compare(ProcessingInstruction n1, ProcessingInstruction n2) 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
| |
| compare | back to summary |
|---|---|
| public int compare(String o1, String o2) 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 | |
| compareContent | back to summary |
|---|---|
| public int compareContent(Branch b1, Branch b2) | |