Package org.threeten.bp

Examples of org.threeten.bp.LocalDate.plusDays()


  public LocalDate getQuarterlyExpiry(final int nthExpiry, final LocalDate date) {
    ArgumentChecker.notNegativeOrZero(nthExpiry, "nth expiry");
    ArgumentChecker.notNull(date, "date");
    LocalDate expiry = date.with(_nextExpiryAdjuster);
    for (int i = 1; i < nthExpiry; i++) {
      expiry = (expiry.plusDays(7)).with(_nextExpiryAdjuster);
    }
    return expiry;
  }

  @Override
View Full Code Here


    SimpleHoliday holiday = new SimpleHoliday();
   
    LocalDate date = LocalDate.now();
    for (int i = 0; i < nHolidays; i++) {
      holiday.addHolidayDate(date);
      date = date.plusDays(3);
    }
   
    return holiday;
  }
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.