|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ftlabs.fisa.InterestRateStep
public class InterestRateStep
Contains a conversion date and a new interest rate for a Step Up/Down security.
| Constructor Summary | |
|---|---|
InterestRateStep(FISADate conversionDate,
double interestRate)
Creates a new InterestRateStep using the provided conversionDate and interest rate. |
|
| Method Summary | |
|---|---|
int |
compareTo(InterestRateStep object)
An implementation of compareTo that allows the natural order of a InterestRateStep to be that of its conversionDate. |
boolean |
equals(java.lang.Object object)
|
FISADate |
getConversionDate()
Returns the conversion date of this step. |
double |
getInterestRate()
Returns the new interest rate of this step. |
int |
hashCode()
|
void |
setConversionDate(FISADate conversionDate)
Set the conversion date of this step. |
void |
setInterestRate(double interestRate)
Set the interest rate of this step. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InterestRateStep(FISADate conversionDate,
double interestRate)
A null conversionDate is allowed, but all InterestRateSteps with a null conversionDate are considered to be equal. Furthermore, an InterestRateStep with a null conversionDate is considered to be before any InterestRateStep with a non null conversionDate. If a Security has an InterestRateStep with a null conversionDate and a InterestRateStep with the datedDate as the conversionDate, the InterestRateStep with a null conversionDate is ignored.
conversionDate - the date on which this new interestRate takes effect.interestRate - the new interest rate.| Method Detail |
|---|
public FISADate getConversionDate()
public void setConversionDate(FISADate conversionDate)
conversionDate - the new conversion date of this step.public double getInterestRate()
public void setInterestRate(double interestRate)
interestRate - the new interest rate of this step.public int compareTo(InterestRateStep object)
compareTo in interface java.lang.Comparable<InterestRateStep>object - The object to compare this InterestRateStep to.
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||