public interface Validate
Implementations ensure the state of an object meets its invariants or
preconditions. It is often used for DTOs or configuration objects to ensure
their state is consistent and valid before use or after deserialisation. See
ValidatableUtil for utilities related
to validation.
| Modifier and Type | Method and Description |
|---|---|
void |
validate(Object o)
Validates the provided object.
|
void validate(Object o)
If validation fails, this method should throw a descriptive
RuntimeException such as IllegalStateException or a custom
validation exception.
o - The object to be validated. Implementations will typically cast
this to their specific type.Copyright © 2026 Chronicle Software Ltd. All rights reserved.