Java LocalDate Calculate max(ChronoLocalDate date1, ChronoLocalDate date2)

Here you can find the source of max(ChronoLocalDate date1, ChronoLocalDate date2)

Description

max

Declaration

public static LocalDate max(ChronoLocalDate date1, ChronoLocalDate date2) 

Method Source Code


//package com.java2s;
import java.time.*;
import java.time.chrono.ChronoLocalDate;

public class Main {
    public static LocalDate max(ChronoLocalDate date1, ChronoLocalDate date2) {
        return LocalDate.from(date1.isBefore(date2) ? date2 : date1);
    }/*from  www  .j  a  va 2 s. com*/
}

Related

  1. isWorkDay(@Nonnull final LocalDate aDate)
  2. lastMonth(LocalDate date)
  3. localDate2ms(final LocalDate ld)
  4. LocalDateFromMilli(long value)
  5. localDateToSystemAdjustedStartOfDayDate(LocalDate d)
  6. medTime(LocalDate date, String text)
  7. minusDaysAdjustedToStartOfDay(LocalDate ld, int days)
  8. newToOld(LocalDate d)
  9. next(Predicate p)