public class RulesComparator extends ParameterComparator
Constructor and Description |
---|
RulesComparator(java.lang.String parameter)
Creates a new instance of RulesComparator
|
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares its two arguments for order.
|
equals, hashCode
public RulesComparator(java.lang.String parameter)
public int compare(java.lang.Object o1, java.lang.Object o2)
Note: this comparator imposes orderings that are inconsistent with equals.
compare
in interface java.util.Comparator
compare
in class ParameterComparator
o1
- the first object to be compared.o2
- the second object to be compared.java.lang.ClassCastException
- if the arguments' types prevent them from
being compared by this Comparator.