| java.lang.Object | |
| ↳ | org.jfree.data.KeyedValueComparator |
A utility class that can compare and order two KeyedValue instances
and sort them into ascending or descending order by key or by value.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new comparator.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Compares two
KeyedValue instances and returns an
int that indicates the relative order of the two objects. | |||||||||||
Returns the sort order.
| |||||||||||
Returns the type.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.util.Comparator
| |||||||||||
Creates a new comparator.
| type | the type (BY_KEY or BY_VALUE,
null not permitted). |
|---|---|
| order | the order (null not permitted).
|
Compares two KeyedValue instances and returns an
int that indicates the relative order of the two objects.
| o1 | object 1. |
|---|---|
| o2 | object 2. |
Returns the sort order.
null).