@Test public void testSupports() { assertTrue(new CommentValidator().supports(Comment.class)); assertFalse(new CommentValidator().supports(SystemCodes.class)); }
public boolean supports(Class<?> clazz) { return Comment.class.isAssignableFrom(clazz); }
CommentValidator implements Validator { public boolean supports(Class<?> clazz) { return Comment.class.isAssignableFrom(clazz); } }
CommentValidator implements Validator { public boolean supports(Class<?> clazz) { return Comment.class.isAssignableFrom(clazz); }  }
CommentValidator implements Validator { public boolean supports(Class<?> clazz) { return Comment.class.isAssignableFrom(clazz); }  boolean supports(Class<?> clazz); @Override void validate(Object obj, Errors errors); }
CommentValidator implements Validator { public boolean supports(Class<?> clazz) { return Comment.class.isAssignableFrom(clazz); }  boolean supports(Class<?> clazz); @Override void validate(Object obj, Errors errors);  }