Interface NodeOrderComparer

All Known Implementing Classes:
GlobalOrderComparer, LocalOrderComparer

public interface NodeOrderComparer
A Comparer used for comparing nodes in document order
Author:
Michael H. Kay
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Compare two objects.
  • Method Details

    • compare

      int compare(NodeInfo a, NodeInfo b)
      Compare two objects.
      Returns:
      invalid input: '<'0 if ainvalid input: '<'b, 0 if a=b, >0 if a>b