public class OHLCDataItem extends Object implements Comparable, Serializable
DefaultOHLCDataset
. This data item is commonly used
to summarise the trading activity of a financial commodity for
a fixed period (most often one day).Constructor and Description |
---|
OHLCDataItem(Date date,
double open,
double high,
double low,
double close,
double volume)
Creates a new item.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object object)
Compares this object with the specified object for order.
|
boolean |
equals(Object obj)
Checks this instance for equality with an arbitrary object.
|
Number |
getClose()
Returns the close value.
|
Date |
getDate()
Returns the date that the data item relates to.
|
Number |
getHigh()
Returns the high value.
|
Number |
getLow()
Returns the low value.
|
Number |
getOpen()
Returns the open value.
|
Number |
getVolume()
Returns the volume.
|
public OHLCDataItem(Date date, double open, double high, double low, double close, double volume)
date
- the date (null
not permitted).open
- the open value.high
- the high value.low
- the low value.close
- the close value.volume
- the volume.public Date getDate()
null
).public Number getOpen()
null
).public Number getHigh()
null
).public Number getLow()
null
).public Number getClose()
null
).public Number getVolume()
null
).public boolean equals(Object obj)
public int compareTo(Object object)
compareTo
in interface Comparable
object
- the object to compare to.Jas4pp 1.5 © Java Analysis Studio for Particle Physics