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

Class CellComparator

  • All Implemented Interfaces:
    java.util.Comparator


    public class CellComparator
    extends java.lang.Object
    implements java.util.Comparator
    A comparator for Cell objects (ascending order). 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
    • Constructor Summary

      Constructors 
      Constructor and Description
      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

      • CellComparator

        public CellComparator()
    • 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.