I have to work with an existing code, and I didnt find what this notation meant : Class<?>...
For instance, it is used in the method :
public static <T> HashSet<ConstraintViolation<T>> validate(Validator validator, T resource, Class<?>... groups) {
return (HashSet<ConstraintViolation<T>>) validator.validate(resource, groups);
}
And called like this :
HashSet<ConstraintViolation<EntryDTO>> l = ValidationTools.validate(this.validator, entryDTO);
Does it mean that "groups" is optionnal ? I found this interesting topic : What does Class<?> mean in Java? but it doesnt really answer my question...
Thanks for your answers =)