com.ibm.commerce.fulfillment.commands

Class ShippingArrangementPrecedenceQuickSortCompare

  • java.lang.Object
    • com.ibm.commerce.fulfillment.commands.ShippingArrangementPrecedenceQuickSortCompare
  • All Implemented Interfaces:
    QuickSortCompare


    public final class ShippingArrangementPrecedenceQuickSortCompare
    extends java.lang.Object
    implements QuickSortCompare
    This class is a quick sort comparison to sort the Shipping Arrangement precedence
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright statement
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(java.lang.Object ffcPrecendence1, java.lang.Object ffcPrecendence2)
      The comparison method for the quick sort
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        Copyright statement
        See Also:
        Constant Field Values
    • Constructor Detail

      • ShippingArrangementPrecedenceQuickSortCompare

        public ShippingArrangementPrecedenceQuickSortCompare()
        Default ShippingArrangementPrecedenceQuickSortCompare constructor. Does nothing.
    • Method Detail

      • compare

        public int compare(java.lang.Object ffcPrecendence1,
                           java.lang.Object ffcPrecendence2)
        The comparison method for the quick sort
        Specified by:
        compare in interface QuickSortCompare
        Parameters:
        ffcPrecendence1 - the first item to compare
        ffcPrecendence2 - the second item to compare
        Returns:
        -1 if the first parameter is less than the 2nd parameter. 1 if the first parameter is greater than the second parameter. 0 if the parameters are the same