Nullable and NotNull can also be used on method or type level to define a default behavior.| Interface | Description |
|---|---|
| Validator<TYPE> |
The Validator interface.
|
| Exception | Description |
|---|---|
| ValidatorException |
| Annotation Type | Description |
|---|---|
| FluentApiValidator |
Meta annotation to declare validators via annotation.
|
| HasNoArgConstructor |
Meta annotation to declare validators via annotation.
|
| Matches | |
| MaxLength |
Checks if string has maximal length.
|
| MinLength |
Checks if string has mininmal length.
|
| NotEmpty |
Validates String to be not empty.
|
| NotNull |
Validates if values isn't null.
|
| Nullable |
Needed to overrule
NotNull annotations on method or enclosing interfaces/types. |
| OfLength |
Checks if string has specific length.
|
Copyright © 2023–2024 Holisticon AG. All rights reserved.