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 Details

    • compare

      int compare(Item a, Item b)
      Compare two objects.
      Specified by:
      compare in interface Comparator<Item>
      Returns:
      <0 if a<b, 0 if a=b, >0 if a>b