Class CodeComparator

  • java.lang.Object
  • All Implemented Interfaces:

    public class CodeComparator
    extends java.lang.Object
    implements java.util.Comparator
    A comparator class for ordering calculation codes. Calculation codes are order by the following:
    1. sequence (ascending).
    2. calculation code ID (ascending).
    • Field Summary

      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The IBM copyright notice field.
    • Constructor Summary

      Constructor and Description
      Constructor for CodeComparator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(java.lang.Object aObj1, java.lang.Object aObj2) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Field Detail


        public static final java.lang.String COPYRIGHT
        The IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CodeComparator

        public CodeComparator()
        Constructor for CodeComparator.
    • Method Detail

      • compare

        public int compare(java.lang.Object aObj1,
                           java.lang.Object aObj2)
        Specified by:
        compare in interface java.util.Comparator
        aObj1 - the first calculation code.
        aObj2 - the second calculation code.
        the result of the comparison.
        See Also:, Object)