org.jfin.date
Class Tenor
- java.lang.Object
-
- org.jfin.date.Tenor
-
public class Tenor extends java.lang.ObjectTODO: Use in interpolation of tenor lists
-
-
Constructor Summary
Constructors Constructor and Description Tenor(int amount, int calendarUnit)Tenor(java.lang.String toParse)Parse a String representation of a Money Market or Swap Tenor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetAmount()intgetCalendarUnit()voidparse(java.lang.String toParse)voidsetAmount(int amount)voidsetCalendarUnit(int calendarUnit)
-
-
-
Constructor Detail
-
Tenor
public Tenor(java.lang.String toParse) throws java.text.ParseExceptionParse a String representation of a Money Market or Swap Tenor. TODO: Implement Futures nodes- Parameters:
toParse-- Throws:
java.text.ParseException
-
Tenor
public Tenor(int amount, int calendarUnit)- Parameters:
amount-calendarUnit-
-
-
Method Detail
-
parse
public void parse(java.lang.String toParse) throws java.text.ParseException- Throws:
java.text.ParseException
-
getAmount
public int getAmount()
- Returns:
- Returns the amount.
-
setAmount
public void setAmount(int amount)
- Parameters:
amount- The amount to set.
-
getCalendarUnit
public int getCalendarUnit()
- Returns:
- Returns the calendarUnit, e.g. Calendar.YEAR.
-
setCalendarUnit
public void setCalendarUnit(int calendarUnit)
- Parameters:
calendarUnit- The calendarUnit to set, e.g. Calendar.YEAR.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG