Here you can find the source of calcNextDayOfWeek(LocalDate d, DayOfWeek dow)
Parameter | Description |
---|---|
d | a parameter |
dow | a parameter |
public static LocalDate calcNextDayOfWeek(LocalDate d, DayOfWeek dow) throws Exception
//package com.java2s; //License from project: Open Source License import java.time.*; import java.time.temporal.TemporalAdjusters; public class Main { /**/*from ww w. ja va2s . c om*/ * Find the next day of the week from the given LocalDate * * @param d * @param dow * @return */ public static LocalDate calcNextDayOfWeek(LocalDate d, DayOfWeek dow) throws Exception { return d.with(TemporalAdjusters.next(dow)); } }