Skip to content

Instantly share code, notes, and snippets.

@BumpeiShimada
Last active November 15, 2018 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BumpeiShimada/b5910a4aecfe7258bda5973fee236748 to your computer and use it in GitHub Desktop.
Save BumpeiShimada/b5910a4aecfe7258bda5973fee236748 to your computer and use it in GitHub Desktop.
/**
* The base class for validating EventForm data
*/
public interface BaseValidator {
// Argument "errors" should be replaced with error handling class.
// In actual case, when "errors" are not empty a program detect it and understand that there are errors.
void validate(EventForm form, List<String> errors);
ValidateType getValidateType();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment