jgnash.engine
Class SecurityHistoryNode

java.lang.Object
  extended by jgnash.engine.SecurityHistoryNode
All Implemented Interfaces:
java.lang.Comparable<SecurityHistoryNode>

public class SecurityHistoryNode
extends java.lang.Object
implements java.lang.Comparable<SecurityHistoryNode>

Historical data for a SecurityNode.

Version:
$Id$
Author:
Craig Cavanaugh

Field Summary
private  java.util.Date date
           
private  java.math.BigDecimal high
           
private  java.math.BigDecimal low
           
private  java.math.BigDecimal price
           
private  long volume
           
 
Constructor Summary
SecurityHistoryNode()
          public no-argument constructor for reflection
 
Method Summary
 int compareTo(SecurityHistoryNode node)
          Compare using on the month, day and year of the node ignoring hours and seconds
 boolean equals(java.lang.Object other)
           
 java.util.Date getDate()
           
 java.math.BigDecimal getHigh()
           
 java.math.BigDecimal getLow()
           
 java.math.BigDecimal getPrice()
           
 long getVolume()
           
 int hashCode()
           
 void setDate(java.util.Date date)
           
 void setHigh(java.math.BigDecimal high)
           
 void setLow(java.math.BigDecimal low)
           
 void setPrice(java.math.BigDecimal price)
           
 void setVolume(long volume)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

date

private java.util.Date date

price

private java.math.BigDecimal price

high

private java.math.BigDecimal high

low

private java.math.BigDecimal low

volume

private long volume
Constructor Detail

SecurityHistoryNode

public SecurityHistoryNode()
public no-argument constructor for reflection

Method Detail

setHigh

public void setHigh(java.math.BigDecimal high)

setLow

public void setLow(java.math.BigDecimal low)

setVolume

public void setVolume(long volume)

getHigh

public java.math.BigDecimal getHigh()

getLow

public java.math.BigDecimal getLow()

getVolume

public long getVolume()

setDate

public void setDate(java.util.Date date)

getDate

public java.util.Date getDate()

setPrice

public void setPrice(java.math.BigDecimal price)

getPrice

public java.math.BigDecimal getPrice()

compareTo

public int compareTo(SecurityHistoryNode node)
Compare using on the month, day and year of the node ignoring hours and seconds

Specified by:
compareTo in interface java.lang.Comparable<SecurityHistoryNode>
Parameters:
node - node to compare

hashCode

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

equals

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