T - The type of the object being validatedpublic interface Validator<T>
It is recommended that implemetations override Object.toString()
to return a concise representation of this validator so that the error
messages in Validation are useful.
| Modifier and Type | Method and Description |
|---|---|
boolean |
validate(T value)
Validates the given object.
|
boolean validate(T value)
value - The object to validatetrue if the given object passed validation, false
otherwiseCopyright © 2026. All rights reserved.