@Test public void testSupports() { assertTrue(new UserGroupValidator().supports(UserGroup.class)); assertFalse(new UserGroupValidator().supports(BaseUser.class)); }
@SuppressWarnings("rawtypes") public boolean supports(Class clazz) { return UserGroup.class.isAssignableFrom(clazz); }
UserGroupValidator implements Validator { @SuppressWarnings("rawtypes") public boolean supports(Class clazz) { return UserGroup.class.isAssignableFrom(clazz); } }
UserGroupValidator implements Validator { @SuppressWarnings("rawtypes") public boolean supports(Class clazz) { return UserGroup.class.isAssignableFrom(clazz); }  }
UserGroupValidator implements Validator { @SuppressWarnings("rawtypes") public boolean supports(Class clazz) { return UserGroup.class.isAssignableFrom(clazz); }  @SuppressWarnings("rawtypes") boolean supports(Class clazz); void validate(Object object, Errors errors); }
UserGroupValidator implements Validator { @SuppressWarnings("rawtypes") public boolean supports(Class clazz) { return UserGroup.class.isAssignableFrom(clazz); }  @SuppressWarnings("rawtypes") boolean supports(Class clazz); void validate(Object object, Errors errors);  }