- java.lang.Object
-
- org.jfree.data.KeyedValuesItemKey<K>
-
- Type Parameters:
K- The key type.
- All Implemented Interfaces:
Serializable,ItemKey
public class KeyedValuesItemKey<K extends Comparable<K>> extends Object implements ItemKey, Serializable
A reference to an item in a {link KeyedValues} instance.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyedValuesItemKey(K key)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Tests this instance for equality with an arbitrary object.KgetKey()Returns the key.inthashCode()StringtoJSONString()Returns a JSON formatted string representing the key.StringtoString()
-
-
-
Constructor Detail
-
KeyedValuesItemKey
public KeyedValuesItemKey(K key)
Creates a new instance.- Parameters:
key- the key (nullnot permitted).
-
-
Method Detail
-
equals
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
-
toJSONString
public String toJSONString()
Description copied from interface:ItemKeyReturns a JSON formatted string representing the key.- Specified by:
toJSONStringin interfaceItemKey- Returns:
- A JSON formatted string.
-
-