org.jfree.data.time.ohlc

Class OHLC

public class OHLC extends Object implements Serializable

A high low data record (immutable). This class is used internally by the OHLCItem class.

Since: 1.0.4

Constructor Summary
OHLC(double open, double high, double low, double close)
Creates a new instance of OHLC.
Method Summary
booleanequals(Object obj)
Tests this instance for equality with an arbitrary object.
doublegetClose()
Returns the close value.
doublegetHigh()
Returns the high value.
doublegetLow()
Returns the low value.
doublegetOpen()
Returns the open value.

Constructor Detail

OHLC

public OHLC(double open, double high, double low, double close)
Creates a new instance of OHLC.

Parameters: open the open value. close the close value. high the high value. low the low value.

Method Detail

equals

public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.

Parameters: obj the object (null permitted).

Returns: A boolean.

getClose

public double getClose()
Returns the close value.

Returns: The close value.

getHigh

public double getHigh()
Returns the high value.

Returns: The high value.

getLow

public double getLow()
Returns the low value.

Returns: The low value.

getOpen

public double getOpen()
Returns the open value.

Returns: The open value.