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

## net.sf.jasperreports.crosstabs.fill.calculation
Class ArbitraryRankComparator

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

All Implemented Interfaces:
  java.util.Comparator

    public class ArbitraryRankComparator

extends java.lang.Object
implements java.util.Comparator

A comparator that assigns arbitrary ranks to objects and uses the ranks to impose an arbitrary order on them.

Version:
  $Id: ArbitraryRankComparator.java 3203 2009-11-19 17:44:16Z lucianc $
Author:
  Lucian Chirita (lucianc@users.sourceforge.net)

Constructor Summary
`ArbitraryRankComparator()`

Method Summary
`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`

### rank

    protected long rank(java.lang.Object o)

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

© 2001-2010 Jaspersoft Corporation www.jaspersoft.com