org.jfin.date.accrual
Class NotionalPeriod
- java.lang.Object
-
- org.jfin.date.Period
-
- org.jfin.date.accrual.NotionalPeriod
-
- All Implemented Interfaces:
- java.lang.Comparable
public class NotionalPeriod extends Period
Used to model a Notional Period; a period of time during which the notional amount of a trade is unchanged.
-
-
Constructor Summary
Constructors Constructor and Description NotionalPeriod()Default constructorNotionalPeriod(java.util.Calendar startCalendar, java.util.Calendar endCalendar, double amount, Iso4217Currency currency)ConstructorNotionalPeriod(java.util.Calendar startCalendar, java.util.Calendar endCalendar, Notional notional)ConstructorNotionalPeriod(double amount, Iso4217Currency currency)ConstructorNotionalPeriod(Notional notional)ConstructorNotionalPeriod(NotionalPeriod toCopy)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description NotionalPeriodclone()doublegetAmount()Gets the amount of the notionalIso4217CurrencygetCurrency()Gets the currency of the notionalNotionalgetNotional()Gets the object representing the NotionalvoidsetAmount(double amount)Sets the amount of the notionalvoidsetCurrency(Iso4217Currency currency)Sets the currency of the notionalvoidsetNotional(Notional notional)Sets the object representing the Notional-
Methods inherited from class org.jfin.date.Period
compareTo, getEndCalendar, getReferenceEndCalendar, getReferenceStartCalendar, getStartCalendar, setEndCalendar, setReferenceEndCalendar, setReferenceStartCalendar, setStartCalendar, toString
-
-
-
-
Constructor Detail
-
NotionalPeriod
public NotionalPeriod()
Default constructor
-
NotionalPeriod
public NotionalPeriod(NotionalPeriod toCopy)
Copy constructor- Parameters:
toCopy- The notional period to copy
-
NotionalPeriod
public NotionalPeriod(Notional notional)
Constructor- Parameters:
notional- The notional to use
-
NotionalPeriod
public NotionalPeriod(double amount, Iso4217Currency currency)Constructor- Parameters:
amount- The amount to usecurrency- The currency to use
-
NotionalPeriod
public NotionalPeriod(java.util.Calendar startCalendar, java.util.Calendar endCalendar, Notional notional)Constructor- Parameters:
startCalendar- The start date as a calendarendCalendar- The end date as a calendarnotional- The notional
-
NotionalPeriod
public NotionalPeriod(java.util.Calendar startCalendar, java.util.Calendar endCalendar, double amount, Iso4217Currency currency)Constructor- Parameters:
startCalendar- The start date as a calendarendCalendar- The end date as a calendaramount- The amountcurrency- The currency
-
-
Method Detail
-
clone
public NotionalPeriod clone()
-
getNotional
public Notional getNotional()
Gets the object representing the Notional- Returns:
- The notional
-
setNotional
public void setNotional(Notional notional)
Sets the object representing the Notional- Parameters:
notional- The notional
-
getAmount
public double getAmount()
Gets the amount of the notional- Returns:
- The amount
-
setAmount
public void setAmount(double amount)
Sets the amount of the notional- Parameters:
amount- The amount
-
getCurrency
public Iso4217Currency getCurrency()
Gets the currency of the notional- Returns:
- The currency
-
setCurrency
public void setCurrency(Iso4217Currency currency)
Sets the currency of the notional- Parameters:
currency- The currency
-
-
DataMelt 3.0 © DataMelt by jWork.ORG