Documentation of 'org.statcato.spreadsheet.CellComparatorDescending' Java class
CellComparatorDescending
org.statcato.spreadsheet

Class CellComparatorDescending

  • All Implemented Interfaces:
    java.util.Comparator


    public class CellComparatorDescending
    extends java.lang.Object
    implements java.util.Comparator
    A comparator for Cell objects. Results in descending order when used with an ascending order sorting method (for example, Collections.sort(java.util.List<T>)). If the Cell objects contains numbers, compare them as numbers. If the Cell objects do not contain numbers, compare them as strings (empty strings are largest).
    Since:
    1.0
    See Also:
    Cell, CellComparator
    • Method Summary

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

      • CellComparatorDescending

        public CellComparatorDescending()
    • Method Detail

      • compare

        public int compare(java.lang.Object Cell1,
                           java.lang.Object Cell2)
        Specified by:
        compare in interface java.util.Comparator

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.