net.sf.jasperreports.crosstabs.fill.calculation

## Class ArbitraryRankComparator

- java.lang.Object
- - net.sf.jasperreports.crosstabs.fill.calculation.ArbitraryRankComparator

- All Implemented Interfaces:
    java.util.Comparator<java.lang.Object>

      public class ArbitraryRankComparator
      extends java.lang.Object
      implements java.util.Comparator<java.lang.Object>

  A comparator that assigns arbitrary ranks to objects and uses the ranks to impose an arbitrary order on them.
  Version:
    $Id: ArbitraryRankComparator.java 6863 2014-02-06 09:59:27Z teodord $
  Author:
    Lucian Chirita (lucianc@users.sourceforge.net)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ArbitraryRankComparator()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(java.lang.Object o1, java.lang.Object o2)`
    `protected long` | `rank(java.lang.Object o)`

    - ### 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

    - #### ArbitraryRankComparator

          public ArbitraryRankComparator()

  - ### Method Detail

    - #### compare

          public int compare(java.lang.Object o1,
                    java.lang.Object o2)

      Specified by:
        `compare` in interface `java.util.Comparator<java.lang.Object>`

    - #### rank

          protected long rank(java.lang.Object o)

© 2001-2010 Jaspersoft Corporation www.jaspersoft.com