jgnash.engine
Class ExchangeRateHistoryNode

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

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

Exchange rate history node for a ExchangeRate. ExchangeRateHistoryNode objects are immutable.

Version:
$Id$
Author:
Craig Cavanaugh

Field Summary
private  java.util.Date date
           
private  java.math.BigDecimal rate
           
 
Constructor Summary
(package private) ExchangeRateHistoryNode()
          Deprecated.  
protected ExchangeRateHistoryNode(java.util.Date date, java.math.BigDecimal rate)
          public constructor
 
Method Summary
 int compareTo(ExchangeRateHistoryNode node)
           
 boolean equals(java.lang.Object other)
           
 java.util.Date getDate()
           
 java.math.BigDecimal getRate()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

date

private java.util.Date date

rate

private java.math.BigDecimal rate
Constructor Detail

ExchangeRateHistoryNode

@Deprecated
ExchangeRateHistoryNode()
Deprecated. 

No argument constructor for reflection purposes. Do not use to create a new instance


ExchangeRateHistoryNode

protected ExchangeRateHistoryNode(java.util.Date date,
                                  java.math.BigDecimal rate)
public constructor

Parameters:
date - date for this history node
rate - exchange rate for the given date
Method Detail

compareTo

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

equals

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

getDate

public java.util.Date getDate()

getRate

public java.math.BigDecimal getRate()

hashCode

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