Package net.sf.saxon.expr.sort
Class GlobalOrderComparer
- java.lang.Object
-
- net.sf.saxon.expr.sort.GlobalOrderComparer
-
- All Implemented Interfaces:
java.util.Comparator<NodeInfo>
public final class GlobalOrderComparer extends java.lang.Object implements java.util.Comparator<NodeInfo>
A Comparer used for comparing nodes in document order. This comparer is used when there is no guarantee that the nodes being compared come from the same document
-
-
Constructor Summary
Constructors Constructor Description GlobalOrderComparer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(NodeInfo a, NodeInfo b)
static GlobalOrderComparer
getInstance()
Get an instance of a GlobalOrderComparer.
-
-
-
Method Detail
-
getInstance
public static GlobalOrderComparer getInstance()
Get an instance of a GlobalOrderComparer. The class maintains no state so this returns the same instance every time.- Returns:
- an instance of a GlobalOrderComparer
-
-