java.util.Comparator
public static final class XmlSort.QNameComparator
extends java.lang.Object
implements java.util.Comparator
java.util.Comparator
for comparing QName
values.
The namespace URIs are compared first and if they are equal, the local parts are compared.
The constructor accepts an argument indicating whether the comparison order is the same as
the lexicographic order of the strings or the reverse.Modifier and Type | Field | Description |
---|---|---|
static int |
ASCENDING |
|
static int |
DESCENDING |
Constructor | Description |
---|---|
QNameComparator(int order) |
Modifier and Type | Method | Description |
---|---|---|
int |
compare(java.lang.Object o,
java.lang.Object o1) |
public static final int ASCENDING
public static final int DESCENDING
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.