public class DateValidationsWithErrorCode extends Object
| Modifier and Type | Method and Description |
|---|---|
static Validation<java.time.LocalDate> |
isLocalDateAfter(java.time.LocalDate minDate,
String errorCode)
Validates that the validated date is after another one.
|
static Validation<Comparable<java.time.LocalDate>> |
isLocalDateAfter(java.util.function.Supplier<java.time.LocalDate> supplierMinDate,
String errorCode)
Validates that the validated date is after another one.
|
static Validation<java.time.LocalDate> |
isLocalDateBefore(java.time.LocalDate maxDate,
String errorCode)
Validates that the validated date is before another one.
|
static Validation<Comparable<java.time.LocalDate>> |
isLocalDateBefore(java.util.function.Supplier<java.time.LocalDate> supplierMaxDate,
String errorCode)
Validates that the validated date is before another one.
|
static Validation<java.time.LocalDate> |
isLocalDateBetween(java.time.LocalDate minDate,
java.time.LocalDate maxDate,
String errorCode)
Validates that the validated date is within a range of another dates.
|
static Validation<Comparable<java.time.LocalDate>> |
isLocalDateBetween(java.util.function.Supplier<java.time.LocalDate> supplierMinDate,
java.util.function.Supplier<java.time.LocalDate> supplierMaxDate,
String errorCode)
Validates that the validated date is within a range of another dates.
|
static Validation<java.time.LocalDate> |
isLocalDateDayOfWeek(java.time.DayOfWeek dayOfWeek,
String errorCode)
Validates that the validated date is the provided day of the week.
|
static Validation<java.time.LocalDate> |
isLocalDateFirstDayOfMonth(String errorCode)
Validates that the validated date is the first date of the month
|
static Validation<java.time.LocalDate> |
isLocalDateFirstDayOfYear(String errorCode)
Validates that the validated date is the first day of the year
|
static Validation<java.time.LocalDate> |
isLocalDateLastDayOfMonth(String errorCode)
Validates that the validated date is the last date of the month.
|
static Validation<java.time.LocalDate> |
isLocalDateLastDayOfYear(String errorCode)
Validates that the validated date is the last day of the year
|
static Validation<java.time.LocalDateTime> |
isLocalDateTimeAfter(java.time.LocalDateTime minDate,
String errorCode)
Validates that the validated date is after another one.
|
static Validation<Comparable<java.time.LocalDateTime>> |
isLocalDateTimeAfter(java.util.function.Supplier<java.time.LocalDateTime> supplierMinDate,
String errorCode)
Validates that the validated date is after another one.
|
static Validation<java.time.LocalDateTime> |
isLocalDateTimeBefore(java.time.LocalDateTime maxDate,
String errorCode)
Validates that the validated date is before another one.
|
static Validation<Comparable<java.time.LocalDateTime>> |
isLocalDateTimeBefore(java.util.function.Supplier<java.time.LocalDateTime> supplierMaxDate,
String errorCode)
Validates that the validated date is before another one.
|
static Validation<java.time.LocalDateTime> |
isLocalDateTimeBetween(java.time.LocalDateTime minDate,
java.time.LocalDateTime maxDate,
String errorCode)
Validates that the validated date is within a range of another dates.
|
static Validation<Comparable<java.time.LocalDateTime>> |
isLocalDateTimeBetween(java.util.function.Supplier<java.time.LocalDateTime> supplierMinDate,
java.util.function.Supplier<java.time.LocalDateTime> supplierMaxDate,
String errorCode)
Validates that the validated date is within a range of another dates.
|
static Validation<java.time.LocalDateTime> |
isLocalDateTimeDayOfWeek(java.time.DayOfWeek dayOfWeek,
String errorCode)
Validates that the validated date is the provided day of the week.
|
static Validation<java.time.LocalDateTime> |
isLocalDateTimeFirstDayOfMonth(String errorCode)
Validates that the validated date is the first date of the month
|
static Validation<java.time.LocalDateTime> |
isLocalDateTimeFirstDayOfYear(String errorCode)
Validates that the validated date is the first day of the year
|
static Validation<java.time.LocalDateTime> |
isLocalDateTimeLastDayOfMonth(String errorCode)
Validates that the validated date is the last date of the month.
|
static Validation<java.time.LocalDateTime> |
isLocalDateTimeLastDayOfYear(String errorCode)
Validates that the validated date is the last day of the year
|
static Validation<java.time.LocalDateTime> |
isLocalDateTimeStartOfDay(String errorCode)
Validates that the validated time is the start of the day.
|
static Validation<java.time.LocalDateTime> |
isLocalDateTimeStartOfHour(String errorCode)
Validates that the validated date has the minutes and seconds set to 0.
|
static Validation<Comparable<java.time.ZonedDateTime>> |
isZonedDateTimeAfter(java.util.function.Supplier<java.time.ZonedDateTime> supplierMinDate,
String errorCode)
Validates that the validated zoned date is after another one.
|
static Validation<java.time.ZonedDateTime> |
isZonedDateTimeAfter(java.time.ZonedDateTime minDate,
String errorCode)
Validates that the validated zoned date is after another one.
|
static Validation<Comparable<java.time.ZonedDateTime>> |
isZonedDateTimeBefore(java.util.function.Supplier<java.time.ZonedDateTime> supplierMaxDate,
String errorCode)
Validates that the validated zoned date is before another one.
|
static Validation<java.time.ZonedDateTime> |
isZonedDateTimeBefore(java.time.ZonedDateTime maxDate,
String errorCode)
Validates that the validated zoned date is before another one.
|
static Validation<Comparable<java.time.ZonedDateTime>> |
isZonedDateTimeBetween(java.util.function.Supplier<java.time.ZonedDateTime> supplierMinDate,
java.util.function.Supplier<java.time.ZonedDateTime> supplierMaxDate,
String errorCode)
Validates that the validated date is within a range of another dates.
|
static Validation<java.time.ZonedDateTime> |
isZonedDateTimeBetween(java.time.ZonedDateTime minDate,
java.time.ZonedDateTime maxDate,
String errorCode)
Validates that the validated date is within a range of another dates.
|
static Validation<java.time.ZonedDateTime> |
isZonedDateTimeDayOfWeek(java.time.DayOfWeek dayOfWeek,
String errorCode)
Validates that the validated date is the provided day of the week.
|
static Validation<java.time.ZonedDateTime> |
isZonedDateTimeFirstDayOfMonth(String errorCode)
Validates that the validated date is the first date of the month
|
static Validation<java.time.ZonedDateTime> |
isZonedDateTimeFirstDayOfYear(String errorCode)
Validates that the validated date is the first day of the year
|
static Validation<java.time.ZonedDateTime> |
isZonedDateTimeLastDayOfMonth(String errorCode)
Validates that the validated date is the last date of the month.
|
static Validation<java.time.ZonedDateTime> |
isZonedDateTimeLastDayOfYear(String errorCode)
Validates that the validated date is the first day of the year
|
static Validation<java.time.ZonedDateTime> |
isZonedDateTimeStartOfDay(String errorCode)
Validates that the validated time is the start of the day.
|
static Validation<java.time.ZonedDateTime> |
isZonedDateTimeStartOfHour(String errorCode)
Validates that the validated date has the minutes and seconds set to 0.
|
public static Validation<java.time.LocalDate> isLocalDateAfter(java.time.LocalDate minDate, String errorCode)
minDate - the validated date must be after thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<Comparable<java.time.LocalDate>> isLocalDateAfter(java.util.function.Supplier<java.time.LocalDate> supplierMinDate, String errorCode)
supplierMinDate - the validated date must be after thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDateTime> isLocalDateTimeAfter(java.time.LocalDateTime minDate, String errorCode)
minDate - the validated date must be after thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<Comparable<java.time.LocalDateTime>> isLocalDateTimeAfter(java.util.function.Supplier<java.time.LocalDateTime> supplierMinDate, String errorCode)
supplierMinDate - the validated date must be after thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.ZonedDateTime> isZonedDateTimeAfter(java.time.ZonedDateTime minDate, String errorCode)
minDate - the validated date must be after thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<Comparable<java.time.ZonedDateTime>> isZonedDateTimeAfter(java.util.function.Supplier<java.time.ZonedDateTime> supplierMinDate, String errorCode)
supplierMinDate - the validated date must be after thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDate> isLocalDateBefore(java.time.LocalDate maxDate, String errorCode)
maxDate - the validated date must be before thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<Comparable<java.time.LocalDate>> isLocalDateBefore(java.util.function.Supplier<java.time.LocalDate> supplierMaxDate, String errorCode)
supplierMaxDate - the validated date must be before thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDateTime> isLocalDateTimeBefore(java.time.LocalDateTime maxDate, String errorCode)
maxDate - the validated date must be before thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<Comparable<java.time.LocalDateTime>> isLocalDateTimeBefore(java.util.function.Supplier<java.time.LocalDateTime> supplierMaxDate, String errorCode)
supplierMaxDate - the validated date must be before thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.ZonedDateTime> isZonedDateTimeBefore(java.time.ZonedDateTime maxDate, String errorCode)
maxDate - the validated date must be before thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<Comparable<java.time.ZonedDateTime>> isZonedDateTimeBefore(java.util.function.Supplier<java.time.ZonedDateTime> supplierMaxDate, String errorCode)
supplierMaxDate - the validated date must be before thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDate> isLocalDateBetween(java.time.LocalDate minDate, java.time.LocalDate maxDate, String errorCode)
minDate - the validated date must be after or equal to thismaxDate - the validated date must be before or equal to thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<Comparable<java.time.LocalDate>> isLocalDateBetween(java.util.function.Supplier<java.time.LocalDate> supplierMinDate, java.util.function.Supplier<java.time.LocalDate> supplierMaxDate, String errorCode)
supplierMinDate - the validated date must be after or equal to thissupplierMaxDate - the validated date must be before or equal to thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDateTime> isLocalDateTimeBetween(java.time.LocalDateTime minDate, java.time.LocalDateTime maxDate, String errorCode)
minDate - the validated date must be after or equal to thismaxDate - the validated date must be before or equal to thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<Comparable<java.time.LocalDateTime>> isLocalDateTimeBetween(java.util.function.Supplier<java.time.LocalDateTime> supplierMinDate, java.util.function.Supplier<java.time.LocalDateTime> supplierMaxDate, String errorCode)
supplierMinDate - the validated date must be after or equal to thissupplierMaxDate - the validated date must be before or equal to thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.ZonedDateTime> isZonedDateTimeBetween(java.time.ZonedDateTime minDate, java.time.ZonedDateTime maxDate, String errorCode)
minDate - the validated date must be after or equal to thismaxDate - the validated date must be before or equal to thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<Comparable<java.time.ZonedDateTime>> isZonedDateTimeBetween(java.util.function.Supplier<java.time.ZonedDateTime> supplierMinDate, java.util.function.Supplier<java.time.ZonedDateTime> supplierMaxDate, String errorCode)
supplierMinDate - the validated date must be after or equal to thissupplierMaxDate - the validated date must be before or equal to thiserrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDate> isLocalDateFirstDayOfYear(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDateTime> isLocalDateTimeFirstDayOfYear(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.ZonedDateTime> isZonedDateTimeFirstDayOfYear(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDate> isLocalDateLastDayOfYear(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDateTime> isLocalDateTimeLastDayOfYear(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.ZonedDateTime> isZonedDateTimeLastDayOfYear(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDate> isLocalDateFirstDayOfMonth(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDateTime> isLocalDateTimeFirstDayOfMonth(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.ZonedDateTime> isZonedDateTimeFirstDayOfMonth(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDateTime> isLocalDateTimeStartOfDay(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.ZonedDateTime> isZonedDateTimeStartOfDay(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDate> isLocalDateLastDayOfMonth(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDateTime> isLocalDateTimeLastDayOfMonth(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.ZonedDateTime> isZonedDateTimeLastDayOfMonth(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDateTime> isLocalDateTimeStartOfHour(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.ZonedDateTime> isZonedDateTimeStartOfHour(String errorCode)
errorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDate> isLocalDateDayOfWeek(java.time.DayOfWeek dayOfWeek, String errorCode)
dayOfWeek - date must match to this day of the weekerrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDateTime> isLocalDateTimeDayOfWeek(java.time.DayOfWeek dayOfWeek, String errorCode)
dayOfWeek - date must match to this day of the weekerrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.ZonedDateTime> isZonedDateTimeDayOfWeek(java.time.DayOfWeek dayOfWeek, String errorCode)
dayOfWeek - date must match to this day of the weekerrorCode - in the case the validation violates this code is reported in the resultCopyright © 2018. All rights reserved.