equals
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
obj
- the object (null
permitted).
getClose
public Number getClose(int series,
int item)
Returns the close value.
- getClose in interface OHLCDataset
series
- the series index (ignored).item
- the item index (zero-based).
getCloseValue
public double getCloseValue(int series,
int item)
Returns the close-value (as a double primitive) for an item within a
series.
- getCloseValue in interface OHLCDataset
series
- the series (zero-based index).item
- the item (zero-based index).
getHigh
public Number getHigh(int series,
int item)
Returns the high value.
- getHigh in interface OHLCDataset
series
- the series index (ignored).item
- the item index (zero-based).
getHighValue
public double getHighValue(int series,
int item)
Returns the high-value (as a double primitive) for an item within a
series.
- getHighValue in interface OHLCDataset
series
- the series (zero-based index).item
- the item (zero-based index).
getItemCount
public int getItemCount(int series)
Returns the item count for the specified series.
- getItemCount in interface XYDataset
series
- the series index (ignored).
getLow
public Number getLow(int series,
int item)
Returns the low value.
- getLow in interface OHLCDataset
series
- the series index (ignored).item
- the item index (zero-based).
getLowValue
public double getLowValue(int series,
int item)
Returns the low-value (as a double primitive) for an item within a
series.
- getLowValue in interface OHLCDataset
series
- the series (zero-based index).item
- the item (zero-based index).
getOpen
public Number getOpen(int series,
int item)
Returns the open value.
- getOpen in interface OHLCDataset
series
- the series index (ignored).item
- the item index (zero-based).
getOpenValue
public double getOpenValue(int series,
int item)
Returns the open-value (as a double primitive) for an item within a
series.
- getOpenValue in interface OHLCDataset
series
- the series (zero-based index).item
- the item (zero-based index).
getVolume
public Number getVolume(int series,
int item)
Returns the trading volume.
- getVolume in interface OHLCDataset
series
- the series index (ignored).item
- the item index (zero-based).
getVolumeValue
public double getVolumeValue(int series,
int item)
Returns the volume-value (as a double primitive) for an item within a
series.
- getVolumeValue in interface OHLCDataset
series
- the series (zero-based index).item
- the item (zero-based index).
getX
public Number getX(int series,
int item)
Returns the x-value for a data item.
- getX in interface XYDataset
series
- the series index (ignored).item
- the item index (zero-based).
getXDate
public Date getXDate(int series,
int item)
Returns the x-value for a data item as a date.
series
- the series index (ignored).item
- the item index (zero-based).
getY
public Number getY(int series,
int item)
Returns the y-value.
- getY in interface XYDataset
series
- the series index (ignored).item
- the item index (zero-based).
sortDataByDate
public void sortDataByDate()
Sorts the data into ascending order by date.