Package org.jfree.data
Class KeyedValueComparatorType
- java.lang.Object
-
- org.jfree.data.KeyedValueComparatorType
-
- All Implemented Interfaces:
java.io.Serializable
public final class KeyedValueComparatorType extends java.lang.Object implements java.io.SerializableUsed to indicate the type of aKeyedValueComparator: 'by key' or 'by value'.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static KeyedValueComparatorTypeBY_KEYAn object representing 'by key' sorting.static KeyedValueComparatorTypeBY_VALUEAn object representing 'by value' sorting.private java.lang.StringnameThe name.
-
Constructor Summary
Constructors Modifier Constructor Description privateKeyedValueComparatorType(java.lang.String name)Private constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Returnstrueif this object is equal to the specified object, andfalseotherwise.inthashCode()Returns a hash code.java.lang.StringtoString()Returns a string representing the object.
-
-
-
Field Detail
-
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.
-
name
private java.lang.String name
The name.
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns a string representing the object.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string.
-
equals
public boolean equals(java.lang.Object o)
Returnstrueif this object is equal to the specified object, andfalseotherwise.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- the other object.- Returns:
- A boolean.
-
hashCode
public int hashCode()
Returns a hash code.- Overrides:
hashCodein classjava.lang.Object- Returns:
- A hash code.
-
-