org.jfree.data
public class KeyedValueComparator extends Object implements Comparator
Constructor Summary | |
---|---|
KeyedValueComparator(KeyedValueComparatorType type, SortOrder order)
Creates a new comparator.
|
Method Summary | |
---|---|
int | compare(Object o1, Object o2)
Compares two KeyedValue instances and returns an
int that indicates the relative order of the two objects.
|
SortOrder | getOrder()
Returns the sort order.
|
KeyedValueComparatorType | getType()
Returns the type.
|
Parameters: type the type (BY_KEY
or BY_VALUE
,
null
not permitted). order the order (null
not permitted).
int
that indicates the relative order of the two objects.
Parameters: o1 object 1. o2 object 2.
Returns: An int indicating the relative order of the objects.
Returns: The sort order (never null
).
Returns: The type (never null
).