public class XYZItemKey<S extends java.lang.Comparable<S>> extends java.lang.Object implements ItemKey, java.lang.Comparable<XYZItemKey<S>>, java.io.Serializable
XYZDataset. This is
used internally to track the data item that a 3D object is related to, if
any (and later that link is used for chart interaction). Instances of
this class are immutable.| Constructor and Description |
|---|
XYZItemKey(S seriesKey,
int itemIndex)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(XYZItemKey<S> key) |
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
int |
getItemIndex()
Returns the item index.
|
S |
getSeriesKey()
Returns the series key.
|
int |
hashCode() |
java.lang.String |
toJSONString()
Returns a JSON formatted string representing the key.
|
java.lang.String |
toString() |
public XYZItemKey(S seriesKey, int itemIndex)
seriesKey - the series key (null not permitted).itemIndex - the item index.public S getSeriesKey()
null).public int getItemIndex()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to test (null permitted).public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toJSONString()
ItemKeytoJSONString in interface ItemKeypublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(XYZItemKey<S> key)
compareTo in interface java.lang.Comparable<XYZItemKey<S extends java.lang.Comparable<S>>>