Package org.jfree.data.time.ohlc
Class OHLC
java.lang.Object
org.jfree.data.time.ohlc.OHLC
- All Implemented Interfaces:
Serializable
A data record containing open-high-low-close data (immutable). This class
is used internally by the
OHLCItem
class.- See Also:
-
Constructor Summary
ConstructorDescriptionOHLC
(double open, double high, double low, double close) Creates a new instance ofOHLC
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests this instance for equality with an arbitrary object.double
getClose()
Returns the close value.double
getHigh()
Returns the high value.double
getLow()
Returns the low value.double
getOpen()
Returns the open value.int
hashCode()
Returns a hash code for this instance.
-
Constructor Details
-
OHLC
Creates a new instance ofOHLC
.- Parameters:
open
- the open value.high
- the high value.low
- the low value.close
- the close value.
-
-
Method Details
-
getOpen
Returns the open value.- Returns:
- The open value.
-
getClose
Returns the close value.- Returns:
- The close value.
-
getHigh
Returns the high value.- Returns:
- The high value.
-
getLow
Returns the low value.- Returns:
- The low value.
-
equals
Tests this instance for equality with an arbitrary object. -
hashCode
Returns a hash code for this instance.
-