Package org.jfree.data
Class KeyedValuesItemKey
java.lang.Object
org.jfree.data.KeyedValuesItemKey
- All Implemented Interfaces:
Serializable
,ItemKey
public class KeyedValuesItemKey extends Object implements ItemKey, Serializable
A key that references one item in a
KeyedValues
data structure.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description KeyedValuesItemKey(Comparable<? extends Object> key)
Creates a new instance. -
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
Tests this instance for equality with an arbitrary object.Comparable<?>
getKey()
Returns the key.String
toJSONString()
Returns a JSON formatted string representing the key.String
toString()
-
Constructor Details
-
KeyedValuesItemKey
Creates a new instance.- Parameters:
key
- the key (null
not permitted).
-
-
Method Details
-
getKey
Returns the key.- Returns:
- The key (never
null
).
-
equals
Tests this instance for equality with an arbitrary object. -
toJSONString
Description copied from interface:ItemKey
Returns a JSON formatted string representing the key.- Specified by:
toJSONString
in interfaceItemKey
- Returns:
- A JSON formatted string.
-
toString
-