jgnash.engine
Class ExchangeRateHistoryNode
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
date
private java.util.Date date
rate
private java.math.BigDecimal rate
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 noderate - exchange rate for the given date
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