Module org.jfree.chart
Package org.jfree.data
Class KeyedValues2DItemKey<R extends Comparable<R>,C extends Comparable<C>>
- java.lang.Object
-
- org.jfree.data.KeyedValues2DItemKey<R,C>
-
- Type Parameters:
R- the row key type.C- the column key type.
- All Implemented Interfaces:
Serializable,Comparable<KeyedValues2DItemKey<R,C>>,ItemKey
public class KeyedValues2DItemKey<R extends Comparable<R>,C extends Comparable<C>> extends Object implements ItemKey, Comparable<KeyedValues2DItemKey<R,C>>, Serializable
An object that references one data item in aKeyedValues2Ddata structure. Instances of this class are immutable (subject to the caller using series, row and column keys that are immutable).- Since:
- 1.3
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyedValues2DItemKey(R rowKey, C columnKey)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(KeyedValues2DItemKey<R,C> key)booleanequals(Object obj)Tests this key for equality with an arbitrary object.CgetColumnKey()Returns the column key.RgetRowKey()Returns the row key.inthashCode()StringtoJSONString()Returns a JSON formatted string representing the key.StringtoString()
-
-
-
Constructor Detail
-
KeyedValues2DItemKey
public KeyedValues2DItemKey(R rowKey, C columnKey)
Creates a new instance.- Parameters:
rowKey- the row key (nullnot permitted).columnKey- the column key (nullnot permitted).
-
-
Method Detail
-
getColumnKey
public C getColumnKey()
Returns the column key.- Returns:
- The column key (never
null).
-
compareTo
public int compareTo(KeyedValues2DItemKey<R,C> key)
- Specified by:
compareToin interfaceComparable<R extends Comparable<R>>
-
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.
-
-