com.cedarspring.tvm
Class IFTables

java.lang.Object
  |
  +--com.cedarspring.tvm.IFTables
All Implemented Interfaces:
java.io.Serializable

final class IFTables
extends java.lang.Object
implements java.io.Serializable

Interest Factor Tables
This class simulates interest factor tables which contain the present or future values for single units of currency:

Version:
1.2.2 15-May-2003
Author:
Cedar Spring Software, Inc.

Field Summary
(package private)  java.math.BigDecimal cacheI
           
(package private)  int cachePeriods
           
(package private)  java.math.BigDecimal cacheValue
           
(package private) static long serialVersionUID
           
 
Constructor Summary
(package private) IFTables()
           
 
Method Summary
(package private)  java.math.BigDecimal getFVAIF(java.math.BigDecimal ip, java.math.BigDecimal n, Options o)
          Get Future Value Interest Factor of an Annuity:
FVAIF = [(1 + i)n - 1] / i
(package private)  java.math.BigDecimal getFVIF(java.math.BigDecimal ip, java.math.BigDecimal n, Options o)
          Construct a default interest factor table IFTables() { } //-------------------------------------- // Public Methods //-------------------------------------- /** get the future value interest factor:
FVIF = (1 + i)n
(package private)  java.math.BigDecimal getPVAIF(java.math.BigDecimal ip, java.math.BigDecimal n, Options o)
          Get Present Value Interest Factor of an Annuity:
PVAIF = [1 - 1 / fvif] / i
(package private)  java.math.BigDecimal getPVIF(java.math.BigDecimal ip, java.math.BigDecimal n, Options o)
          Get Present Value Interest Factor:
PVIF = 1 / (1 + i)n
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheI

java.math.BigDecimal cacheI

cachePeriods

int cachePeriods

cacheValue

java.math.BigDecimal cacheValue

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

IFTables

IFTables()
Method Detail

getFVIF

java.math.BigDecimal getFVIF(java.math.BigDecimal ip,
                             java.math.BigDecimal n,
                             Options o)
Construct a default interest factor table IFTables() { } //-------------------------------------- // Public Methods //-------------------------------------- /** get the future value interest factor:
FVIF = (1 + i)n


getPVIF

java.math.BigDecimal getPVIF(java.math.BigDecimal ip,
                             java.math.BigDecimal n,
                             Options o)
Get Present Value Interest Factor:
PVIF = 1 / (1 + i)n


getFVAIF

java.math.BigDecimal getFVAIF(java.math.BigDecimal ip,
                              java.math.BigDecimal n,
                              Options o)
Get Future Value Interest Factor of an Annuity:
FVAIF = [(1 + i)n - 1] / i


getPVAIF

java.math.BigDecimal getPVAIF(java.math.BigDecimal ip,
                              java.math.BigDecimal n,
                              Options o)
Get Present Value Interest Factor of an Annuity:
PVAIF = [1 - 1 / fvif] / i