Java LocalDate Calculate subscriptionDeletionRequired(LocalDate vehicleMotExpiryDate, LocalDate requestDate)

Here you can find the source of subscriptionDeletionRequired(LocalDate vehicleMotExpiryDate, LocalDate requestDate)

Description

subscription Deletion Required

License

Open Source License

Declaration

public static boolean subscriptionDeletionRequired(LocalDate vehicleMotExpiryDate, LocalDate requestDate) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.time.LocalDate;

public class Main {
    private static final int MONTHS_BEFORE_DELETION = 59;

    public static boolean subscriptionDeletionRequired(LocalDate vehicleMotExpiryDate, LocalDate requestDate) {

        LocalDate deletionDate = vehicleMotExpiryDate.plusMonths(MONTHS_BEFORE_DELETION);
        return (requestDate.isAfter(deletionDate) || requestDate.isEqual(deletionDate));
    }/*www. j  ava  2  s  .  co m*/
}

Related

  1. rebucketingArray(List targetDates, double[] rebucketedSensitivityAmounts, double sensitivityAmount, LocalDate sensitivityDate)
  2. roundDown(final LocalDate dateTime, final TemporalUnit temporalUnit, final int size)
  3. stream(LocalDate startInclusive, LocalDate endExclusive)
  4. stringDateToLocalDate(String day, String month, String year)
  5. stringToLocalDate(String birthDate)
  6. toMilliseconds(LocalDate localDate)
  7. toPgDays(LocalDate date)
  8. withinAYearFromNow(LocalDate date)
  9. withTime(LocalDate day, int hours, int minutes)