org.pentaho.reporting.engine.classic.core.states
Class StateUtilities.DescendingComparator

java.lang.Object
  extended by 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

Constructor Summary
StateUtilities.DescendingComparator()
          Default constructor.
 
Method Summary
 int compare(Object o1, Object o2)
          Compares its two arguments for order.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

StateUtilities.DescendingComparator

public StateUtilities.DescendingComparator()
Default constructor.

Method Detail

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.