Interface Validator<T>
- Type Parameters:
T- input type accepted by the validator
- All Known Implementing Classes:
FieldMappingsValidator,FilterableFieldValidator,SortableFieldValidator
public interface Validator<T>
Generic contract for validators that enforce library-specific constraints on
an input object.
-
Method Summary
-
Method Details
-
validate
Validates the supplied object and throws an exception when a constraint is violated.- Parameters:
object- object to validate
-