java.lang.Object | +--com.cedarspring.tvm.PresentValue
Present Value
Present value is the value of a promised future amount of money
(future value) that has been discounted to today's equivalent value.
The future amount can be a single sum that will be received during
the last period, as a series of equally-spaced payments, or both.
Since money has time value, the present value of a promised future
amount is worth less the longer you have to wait to receive it.
This class will:
| Field Summary | |
private IFTables |
ift
|
(package private) static long |
serialVersionUID
|
private java.math.BigDecimal |
value
|
| Constructor Summary | |
(package private) |
PresentValue()
Construct a default PresentValue Object. |
| Method Summary | |
(package private) void |
computeValue(java.math.BigDecimal ip,
java.math.BigDecimal n,
java.math.BigDecimal pmt,
java.math.BigDecimal fv,
boolean end,
Options o)
Compute the present value and set the presentValue property. |
(package private) java.math.BigDecimal |
getValue()
Recall present value |
(package private) void |
setValue(java.math.BigDecimal presentValue,
Options o)
Store a new present value and notify listeners. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.math.BigDecimal value
private IFTables ift
static final long serialVersionUID
| Constructor Detail |
PresentValue()
| Method Detail |
void setValue(java.math.BigDecimal presentValue,
Options o)
throws TVMException
presentValue - Present Value.
Money paid out is negative.
TVMExceptionjava.math.BigDecimal getValue()
void computeValue(java.math.BigDecimal ip,
java.math.BigDecimal n,
java.math.BigDecimal pmt,
java.math.BigDecimal fv,
boolean end,
Options o)
throws TVMException
ip - interest Per Periodn - numberOfPeriodspmt - paymentfv - futureValueo - Options Object
TVMExceptionpublic java.lang.String toString()
toString in class java.lang.Object