Package org.jfree.data
Class KeyedValuesItemKey
- java.lang.Object
-
- org.jfree.data.KeyedValuesItemKey
-
- All Implemented Interfaces:
java.io.Serializable,ItemKey
public class KeyedValuesItemKey extends java.lang.Object implements ItemKey, java.io.Serializable
A key that references one item in aKeyedValuesdata structure.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Comparable<?>keyThe key for the item.
-
Constructor Summary
Constructors Constructor Description KeyedValuesItemKey(java.lang.Comparable<?> key)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Tests this instance for equality with an arbitrary object.java.lang.Comparable<?>getKey()Returns the key.java.lang.StringtoJSONString()Returns a JSON formatted string representing the key.java.lang.StringtoString()
-
-
-
Method Detail
-
getKey
public java.lang.Comparable<?> getKey()
Returns the key.- Returns:
- The key (never
null).
-
equals
public boolean equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object (nullnot permitted).- Returns:
- A boolean.
-
toJSONString
public java.lang.String toJSONString()
Description copied from interface:ItemKeyReturns a JSON formatted string representing the key.- Specified by:
toJSONStringin interfaceItemKey- Returns:
- A JSON formatted string.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-