Interface ItemOrderComparer

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    GlobalOrderComparer, LocalOrderComparer

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

      • compare

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