Package org.drip.service.api
Class ForwardRates
java.lang.Object
org.drip.service.api.ForwardRates
public class ForwardRates
extends java.lang.Object
ForwardRates contains the array of the forward rates.
- Module = Computational Core Module
- Library = Computation Support
- Project = Environment, Product/Definition Containers, and Scenario/State Manipulation APIs
- Package = Horizon Roll Attribution Service API
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ForwardRates()
Empty ForwardRates constructor -
Method Summary
Modifier and Type Method Description boolean
addForward(double dblForward)
Add a Forward Rate to the Listdouble[]
toArray()
Convert the List of Forwards to an Arrayjava.lang.String
toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ForwardRates
public ForwardRates()Empty ForwardRates constructor
-
-
Method Details
-
addForward
public boolean addForward(double dblForward)Add a Forward Rate to the List- Parameters:
dblForward
- The Forward Rate to be added- Returns:
- TRUE - Successfully added
-
toArray
public double[] toArray()Convert the List of Forwards to an Array- Returns:
- The Array of Forwards
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-