org.jfree.data

Class KeyedValueComparatorType


public final class KeyedValueComparatorType
extends java.lang.Object

Used to indicate the type of a KeyedValueComparator : 'by key' or 'by value'.

Field Summary

static KeyedValueComparatorType
BY_KEY
An object representing 'by key' sorting.
static KeyedValueComparatorType
BY_VALUE
An object representing 'by value' sorting.

Method Summary

boolean
equals(Object o)
Returns true if this object is equal to the specified object, and false otherwise.
int
hashCode()
Returns a hash code.
String
toString()
Returns a string representing the object.

Field Details

BY_KEY

public static final KeyedValueComparatorType BY_KEY
An object representing 'by key' sorting.

BY_VALUE

public static final KeyedValueComparatorType BY_VALUE
An object representing 'by value' sorting.

Method Details

equals

public boolean equals(Object o)
Returns true if this object is equal to the specified object, and false otherwise.
Parameters:
o - the other object.
Returns:
A boolean.

hashCode

public int hashCode()
Returns a hash code.
Returns:
A hash code.

toString

public String toString()
Returns a string representing the object.
Returns:
The string.