public class CommonValidations extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Validation<T> |
isEqualTo(java.util.function.Supplier<T> compareTo)
returns a validation which validates that the validated value is equal to anotherone.
|
static <T> Validation<T> |
isEqualTo(T compareTo)
returns a validation which validates that the validated value is equal to anotherone.
|
static <T> Validation<T> |
notNull()
returns a validation which validates that a value is not null.
|
public static <T> Validation<T> notNull()
T - type of the tested valuepublic static <T> Validation<T> isEqualTo(T compareTo)
T - type of the tested valuecompareTo - the validated value is compared to this onepublic static <T> Validation<T> isEqualTo(java.util.function.Supplier<T> compareTo)
T - type of the tested valuecompareTo - the validated value is compared to this oneCopyright © 2018. All rights reserved.