Interface ItemOrderComparer

  • All Superinterfaces:
    java.util.Comparator<Item>
    All Known Implementing Classes:
    GlobalOrderComparer, LocalOrderComparer

    public interface ItemOrderComparer
    extends java.util.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
      int compare​(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:
        compare in interface java.util.Comparator<Item>
        Returns:
        <0 if a<b, 0 if a=b, >0 if a>b