Class SortInputFieldDescending

java.lang.Object
org.dlese.dpc.schemedit.input.SortInputFieldDescending
All Implemented Interfaces:
Comparator

public class SortInputFieldDescending extends Object implements Comparator
Comparator to order input fields in reverse "natural order" of their xpath attribute.
Author:
ostwald

  • Constructor Details

    • SortInputFieldDescending

      public SortInputFieldDescending()
  • Method Details

    • compare

      public int compare(Object o1, Object o2)
      Compare InputField objects by their XPath fields (in reverse of "natural order")
      Specified by:
      compare in interface Comparator
      Parameters:
      o1 - InputField 1
      o2 - InputField 2
      Returns:
      comparison by reverse of "xpath order"