Interface ItemOrderComparer

All Superinterfaces:
Serializable
All Known Implementing Classes:
GlobalOrderComparer, LocalOrderComparer

public interface ItemOrderComparer extends Serializable
A Comparer used for comparing nodes in document order, or items in merge order
Author:
Michael H. Kay
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compare(Item a, Item b)
    Compare two objects.
  • Method Details

    • compare

      int compare(Item a, Item b)
      Compare two objects.
      Returns:
      <0 if a<b, 0 if a=b, >0 if a>b