Package org.jfree.data.time.ohlc
Class OHLC
- java.lang.Object
-
- org.jfree.data.time.ohlc.OHLC
-
- All Implemented Interfaces:
java.io.Serializable
public class OHLC extends java.lang.Object implements java.io.SerializableA data record containing open-high-low-close data (immutable). This class is used internally by theOHLCItemclass.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OHLC(double open, double high, double low, double close)Creates a new instance ofOHLC.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.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.inthashCode()Returns a hash code for this instance.
-
-
-
Method Detail
-
getOpen
public double getOpen()
Returns the open value.- Returns:
- The open value.
-
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.
-
equals
public boolean equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()
Returns a hash code for this instance.- Overrides:
hashCodein classjava.lang.Object- Returns:
- A hash code.
-
-