Package org.apache.jackrabbit.vault.util
Class QNameComparator
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.QNameComparator
-
- All Implemented Interfaces:
Comparator<QName>
public class QNameComparator extends Object implements Comparator<QName>
Compares based on prefixes and local names as follows:- first ns prefixes
- then prefixed names
- only afterwards non-prefixed names
-
-
Field Summary
Fields Modifier and Type Field Description static QNameComparator
INSTANCE
-
Constructor Summary
Constructors Constructor Description QNameComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(QName o1, QName o2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
INSTANCE
public static final QNameComparator INSTANCE
-
-
Method Detail
-
compare
public int compare(QName o1, QName o2)
- Specified by:
compare
in interfaceComparator<QName>
-
-