All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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