Package org.jquantlib.util

Examples of org.jquantlib.util.Date.lt()


           exception few lines below we need to add 10 years right away */
        if (y==0 && referenceDate.getYear()<=1909) y+=10;
        int yMod = (referenceDate.getYear() % 10);
        y += referenceDate.getYear() - yMod;
        Date result = nextDate(DateFactory.getFactory().getDate(1, m, y), false);
        if (result.lt(referenceDate))
            return nextDate(DateFactory.getFactory().getDate(1, m, y+10), false);

        return result;
    }

View Full Code Here


                exitDate = firstDate;

            while (true) {
                Date temp = nullCalendar.advance(seed, new Period(-periods * tenor.getLength(), tenor.getUnits()), convention,
                        endOfMonth);
                if (temp.lt(exitDate))
                    break;
                else {
                    dates.add(0, temp);
                    isRegular.add(0, true);
                    ++periods;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.