public class

OHLC

extends Object
implements Serializable
java.lang.Object
   ↳ org.jfree.data.time.ohlc.OHLC

Class Overview

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

Summary

Public Constructors
OHLC(double open, double high, double low, double close)
Creates a new instance of OHLC.
Public Methods
boolean equals(Object obj)
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OHLC (double open, double high, double low, double close)

Creates a new instance of OHLC.

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

Public Methods

public boolean equals (Object obj)

Tests this instance for equality with an arbitrary object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public double getClose ()

Returns the close value.

Returns
  • The close value.

public double getHigh ()

Returns the high value.

Returns
  • The high value.

public double getLow ()

Returns the low value.

Returns
  • The low value.

public double getOpen ()

Returns the open value.

Returns
  • The open value.