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 a
KeyedValues2D
data
structure. Instances of this class are immutable (subject to the caller
using series, row and column keys that are immutable).- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description KeyedValues2DItemKey(R rowKey, C columnKey)
Creates a new instance. -
Method Summary
Modifier and Type Method Description int
compareTo(KeyedValues2DItemKey<R,C> key)
boolean
equals(Object obj)
Tests this key for equality with an arbitrary object.C
getColumnKey()
Returns the column key.R
getRowKey()
Returns the row key.int
hashCode()
String
toJSONString()
Returns a JSON formatted string representing the key.String
toString()
-
Constructor Details
-
KeyedValues2DItemKey
Creates a new instance.- Parameters:
rowKey
- the row key (null
not permitted).columnKey
- the column key (null
not permitted).
-
-
Method Details
-
getRowKey
Returns the row key.- Returns:
- The row key (never
null
).
-
getColumnKey
Returns the column key.- Returns:
- The column key (never
null
).
-
compareTo
- Specified by:
compareTo
in interfaceComparable<R extends Comparable<R>>
-
equals
Tests this key for equality with an arbitrary object. -
hashCode
-
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
-