public class DateValidationsWithErrorCode extends Object
| Modifier and Type | Method and Description |
|---|---|
static Validation<java.time.LocalDateTime> |
isDateAfter(java.time.LocalDateTime minDate,
String errorCode)
validates if the validated date is after the date provided by the argument minDate.
|
static Validation<java.time.LocalDateTime> |
isDateAfter(java.util.function.Supplier<java.time.LocalDateTime> minDateSupplier,
String errorCode)
validates if the validated date is after the date provided by the argument minDateSupplier.
|
public static Validation<java.time.LocalDateTime> isDateAfter(java.time.LocalDateTime minDate, String errorCode)
minDate - the validated date must be after this oneerrorCode - in the case the validation violates this code is reported in the resultpublic static Validation<java.time.LocalDateTime> isDateAfter(java.util.function.Supplier<java.time.LocalDateTime> minDateSupplier, String errorCode)
minDateSupplier - the validated date must be after this oneerrorCode - in the case the validation violates this code is reported in the resultCopyright © 2018. All rights reserved.