public final class Utilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static LocalDate |
getClosestDateInPast(List<LocalDate> listDate,
LocalDate dateToSearch)
Return the closest date in past a list of date with the given date
|
static LocalDateTime |
getClosestDateTimeInFuture(List<LocalDateTime> listDateTime,
LocalDateTime dateTimeToSearch)
Return the closest date time in future in a list of date time and a given date time
|
static WeekDefinition |
getClosestWeekDefinitionInPast(List<WeekDefinition> listWeek,
LocalDate dateToSearch)
Return the closest Week in past a list of date with the given date
|
static DateTimeFormatter |
getFormatter()
Getter for the formatter
|
public static DateTimeFormatter getFormatter()
public static LocalDate getClosestDateInPast(List<LocalDate> listDate, LocalDate dateToSearch)
listDate - the list of datedateToSearch - the date to searchpublic static WeekDefinition getClosestWeekDefinitionInPast(List<WeekDefinition> listWeek, LocalDate dateToSearch)
listDate - the list of datedateToSearch - the date to searchpublic static LocalDateTime getClosestDateTimeInFuture(List<LocalDateTime> listDateTime, LocalDateTime dateTimeToSearch)
listDateTime - the list of date timedateTimeToSearch - the date time to searchCopyright © 2023 City of Paris. All rights reserved.