Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.statcato.spreadsheet
Class CellComparatorDescending

    java.lang.Object
      org.statcato.spreadsheet.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)`). 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
Version:
  %I%, %G%
Author:
  Margaret Yau
See Also:
  `Cell`, `CellComparator`

Constructor Summary
`CellComparatorDescending()`

Method Summary
`int` | `compare(java.lang.Object Cell1, java.lang.Object Cell2)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface java.util.Comparator
`equals`

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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD