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