T - public abstract class AbstractVerifier<T,X extends AbstractVerifier<T,X>> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractVerifier(T argumentValue) |
| Modifier and Type | Method and Description |
|---|---|
X |
isEqualTo(T otherValue)
asserts that the validated value is equal to the provided argument.
|
X |
isNotEqualTo(T otherValue)
asserts that the validated value is not equal to the provided
|
X |
isNotNull()
asserts that the validated value is not null.
|
X |
isNull()
asserts that the validated value is null.
|
void |
matches(at.meks.validation.core.Matcher<T> matcher)
asserts using a custom matcher.
|
X |
withMessage(java.util.function.Supplier<String> errorMessage) |
protected AbstractVerifier(T argumentValue)
public void matches(at.meks.validation.core.Matcher<T> matcher)
matcher - is used to verify if the value matches the verificationpublic X isNotNull()
public X isNull()
public X isEqualTo(T otherValue)
otherValue - the validated value is compared to thispublic X isNotEqualTo(T otherValue)
otherValue - the validated value is compared to this argpublic X withMessage(java.util.function.Supplier<String> errorMessage)
Copyright © 2020. All rights reserved.