Class ArbitraryRankComparator
- java.lang.Object
-
- net.sf.jasperreports.crosstabs.fill.calculation.ArbitraryRankComparator
-
- All Implemented Interfaces:
Comparator<Object>
public class ArbitraryRankComparator extends Object implements Comparator<Object>
A comparator that assigns arbitrary ranks to objects and uses the ranks to impose an arbitrary order on them.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_FOUND_OBJECTS_WITH_SAME_RANK
static String
EXCEPTION_MESSAGE_KEY_RANK_COMPARATOR_OVERFLOW
-
Constructor Summary
Constructors Constructor Description ArbitraryRankComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Object o1, Object o2)
protected long
rank(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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_FOUND_OBJECTS_WITH_SAME_RANK
public static final String EXCEPTION_MESSAGE_KEY_FOUND_OBJECTS_WITH_SAME_RANK
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_RANK_COMPARATOR_OVERFLOW
public static final String EXCEPTION_MESSAGE_KEY_RANK_COMPARATOR_OVERFLOW
- See Also:
- Constant Field Values
-
-