is LocalDate In Range Inclusive - Java java.time

Java examples for java.time:LocalDate

Description

is LocalDate In Range Inclusive

Demo Code


//package com.java2s;
import java.time.LocalDate;

public class Main {
    public static boolean ldInRangeInclusive(LocalDate check,
            LocalDate start, LocalDate end) {
        if (check.isBefore(start) || check.isAfter(end))
            return false;
        return true;
    }/*from  w w  w  . ja  v a  2 s. c  om*/
}

Related Tutorials