Here you can find the source of isInPeriod(LocalDate subject, LocalDate start, LocalDate end)
public static boolean isInPeriod(LocalDate subject, LocalDate start, LocalDate end)
//package com.java2s; //License from project: Open Source License import java.time.*; public class Main { public static boolean isInPeriod(LocalDate subject, LocalDate start, LocalDate end) { return (subject.isAfter(start) || subject.isEqual(start)) && (subject.isBefore(end) || subject.isEqual(end)); }/*from w ww. ja v a2 s .c o m*/ }