Class ArbitraryRankComparator
java.lang.Object
net.sf.jasperreports.crosstabs.fill.calculation.ArbitraryRankComparator
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
EXCEPTION_MESSAGE_KEY_FOUND_OBJECTS_WITH_SAME_RANK
- See Also:
-
EXCEPTION_MESSAGE_KEY_RANK_COMPARATOR_OVERFLOW
- See Also:
-
-
Constructor Details
-
ArbitraryRankComparator
public ArbitraryRankComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Object>
-
rank
-