org.pentaho.reporting.engine.classic.core.states
Class StateUtilities.DescendingComparator
java.lang.Object
org.pentaho.reporting.engine.classic.core.states.StateUtilities.DescendingComparator
- All Implemented Interfaces:
- Serializable, Comparator
- Enclosing class:
- StateUtilities
public static final class StateUtilities.DescendingComparator
- extends Object
- implements Comparator, Serializable
A comparator for levels in descending order.
- See Also:
- Serialized Form
StateUtilities.DescendingComparator
public StateUtilities.DescendingComparator()
- Default constructor.
compare
public int compare(Object o1,
Object o2)
- Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first
argument is less than, equal to, or greater than the second.
- Specified by:
compare
in interface Comparator
- Parameters:
o1
- the first object to be compared.o2
- the second object to be compared.
- Returns:
- a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater
than the second.
- Throws:
ClassCastException
- if the arguments' types prevent them from being compared by this Comparator.