Documentation of 'org.jfin.date.Tenor' Java class
Tenor
org.jfin.date

Class Tenor



  • public class Tenor
    extends java.lang.Object
    TODO: 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.
    • Constructor Detail

      • Tenor

        public Tenor(java.lang.String toParse)
              throws java.text.ParseException
        Parse 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

You see the box below because you did not login.