Package net.sf.saxon.expr.sort
Class GlobalOrderComparer
java.lang.Object
net.sf.saxon.expr.sort.GlobalOrderComparer
- All Implemented Interfaces:
Comparator<Item>,ItemOrderComparer
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 -
Method Summary
Modifier and TypeMethodDescriptionintCompare two objects.static GlobalOrderComparerGet an instance of a GlobalOrderComparer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
GlobalOrderComparer
public GlobalOrderComparer()
-
-
Method Details
-
getInstance
Get an instance of a GlobalOrderComparer. The class maintains no state so this returns the same instance every time. -
compare
Description copied from interface:ItemOrderComparerCompare two objects.- Specified by:
comparein interfaceComparator<Item>- Specified by:
comparein interfaceItemOrderComparer- Returns:
- <0 if a<b, 0 if a=b, >0 if a>b
-