Class DescendingOrderComparator

  • java.lang.Object
  • All Implemented Interfaces:

    public class DescendingOrderComparator
    extends java.lang.Object
    implements java.util.Comparator
    A comparator for ordering objects in descending order.
    • 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 DescendingOrderComparator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(java.lang.Object o1, java.lang.Object o2) 
      • 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

      • DescendingOrderComparator

        public DescendingOrderComparator()
        Constructor for DescendingOrderComparator.
    • Method Detail

      • compare

        public int compare(java.lang.Object o1,
                           java.lang.Object o2)
        Specified by:
        compare in interface java.util.Comparator
        o1 - the first object.
        o2 - the second object.
        the result of the comparison.
        See Also:, Object)