org.otfeed.event
Class OTTodaysOHL

java.lang.Object
  extended by org.otfeed.event.OTTodaysOHL
All Implemented Interfaces:
java.lang.Comparable<OTTodaysOHL>

public final class OTTodaysOHL
extends java.lang.Object
implements java.lang.Comparable<OTTodaysOHL>

Provides OHL (Open/High/Low) information.


Constructor Summary
OTTodaysOHL()
          Default constructor.
OTTodaysOHL(double openPrice, double highPrice, double lowPrice)
          Constructor.
 
Method Summary
 int compareTo(OTTodaysOHL other)
           
 boolean equals(java.lang.Object o)
           
 double getHighPrice()
           
 double getLowPrice()
           
 double getOpenPrice()
           
 int hashCode()
           
 void setHighPrice(double highPrice)
          Sets High Price.
 void setLowPrice(double lowPrice)
          Sets Low price.
 void setOpenPrice(double openPrice)
          Sets Open price.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OTTodaysOHL

public OTTodaysOHL()
Default constructor.


OTTodaysOHL

public OTTodaysOHL(double openPrice,
                   double highPrice,
                   double lowPrice)
Constructor.

Parameters:
openPrice - Open price.
highPrice - High price.
lowPrice - Low price.
Method Detail

getOpenPrice

public double getOpenPrice()
Returns:
Open price.

setOpenPrice

public void setOpenPrice(double openPrice)
Sets Open price.

Parameters:
openPrice - Open price.

getHighPrice

public double getHighPrice()
Returns:
High price.

setHighPrice

public void setHighPrice(double highPrice)
Sets High Price.

Parameters:
highPrice - High price.

getLowPrice

public double getLowPrice()
Returns:
Low price.

setLowPrice

public void setLowPrice(double lowPrice)
Sets Low price.

Parameters:
lowPrice - Low price.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(OTTodaysOHL other)
Specified by:
compareTo in interface java.lang.Comparable<OTTodaysOHL>


Copyright © 2007 Mike Kroutikov. All Rights Reserved.