posted 11 years ago
What is the role of supports() in Validator.
I use a supports() like this ---
@Override
public boolean supports(Class<?> clazz) {
//return User.class.isAssignableFrom(clazz);
return User.class.equals(clazz);
//return false;
}
In this method body what does "isAssignableFrom(clazz);" do.
please provide me some links from where I can understand the Validator interface fully