|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ftlabs.fisa.Redemption
public class Redemption
A class to represent any redemption date and rate. This could be maturity, a call, a put etc...
| Constructor Summary | |
|---|---|
Redemption(FISADate date,
double value)
Creates a new instance of Redemption |
|
Redemption(FISADate date,
double value,
FISADate lastInterestDate)
Creates a new instance of Redemption |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object object)
An implementation of compareTo that allows the natural order of a Redemption to be that of its redemption date. |
boolean |
equals(java.lang.Object object)
Compares this Redemption to another object. |
FISADate |
generateLastInterestDate(FISADate synchronizeDate,
InterestFrequency interestFrequency,
boolean eomAdjust)
Generates a date that would be the interest/dividend date just prior to redemption. |
FISADate |
getDate()
Get the redemption Date. |
FISADate |
getLastInterestDate()
Returns the interest date just prior to redemption, or null if it has not been set. |
double |
getValue()
Returns the redemption value. |
int |
hashCode()
|
void |
setDate(FISADate date)
Sets the redemption Date. |
void |
setLastInterestDate(FISADate lastInterestDate)
Sets the interest date just prior to redemption. |
void |
setValue(double value)
Sets the redemption value. |
java.lang.String |
toString()
Returns a description of this Redemption. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Redemption(FISADate date,
double value,
FISADate lastInterestDate)
date - redemption date.value - redemption value.lastInterestDate - the interest date just prior to redemption.
public Redemption(FISADate date,
double value)
date - Redemption Datevalue - Redemption Value| Method Detail |
|---|
public FISADate getDate()
public void setDate(FISADate date)
date - the redemption Date.public double getValue()
public void setValue(double value)
value - the redemption value.public FISADate getLastInterestDate()
public void setLastInterestDate(FISADate lastInterestDate)
lastInterestDate - the interest date just prior to redemption.
public FISADate generateLastInterestDate(FISADate synchronizeDate,
InterestFrequency interestFrequency,
boolean eomAdjust)
synchronizeDate - A date to synchronize the lastInterestDate to.
This will usually be a datedDate, firstInterestDate, or dividendPayDate.
If synchronizeDate is null, then a date that is in sync with the
redemption date is generated.interestFrequency - The interestFrequency to use.eomAdjust - Determines whether or not the end of month adjust
rule is used.
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
Redemption to another object.
equals in class java.lang.Objectobject - the Object to which this Redemption is compared.
true if this Redemption equals
the supplied Object, otherwise false.public int compareTo(java.lang.Object object)
compareTo in interface java.lang.Comparableobject - The object to compare this Redemption to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||