global.maplink.validations.Validable Maven / Gradle / Ivy
The newest version!
package global.maplink.validations;
import java.util.List;
public interface Validable {
default void throwIfInvalid() {
List violations = validate();
if (!violations.isEmpty()) {
throw new ValidationException(violations);
}
}
List validate();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy