Class DescendingComparer


  • public class DescendingComparer
    extends Comparer
    A Comparer used for comparing descending keys
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.Object a, java.lang.Object b)
      Compare two objects.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DescendingComparer

        public DescendingComparer​(Comparer base)
    • Method Detail

      • compare

        public int compare​(java.lang.Object a,
                           java.lang.Object b)
        Compare two objects.
        Specified by:
        compare in class Comparer
        Returns:
        <0 if a0 if a>b
        Throws:
        java.lang.ClassCastException - if the objects are of the wrong type for this Comparer