Package net.sf.saxon.expr.sort
Interface ItemOrderComparer
-
- All Superinterfaces:
Comparator<Item>
- All Known Implementing Classes:
GlobalOrderComparer,LocalOrderComparer
public interface ItemOrderComparer extends Comparator<Item>
A Comparer used for comparing nodes in document order, or items in merge order
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcompare(Item a, Item b)Compare two objects.-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
int compare(Item a, Item b)
Compare two objects.- Specified by:
comparein interfaceComparator<Item>- Returns:
- <0 if a<b, 0 if a=b, >0 if a>b
-
-