@ NotNull public static < TYPE > Set < ConstraintViolation < TYPE > > validate ( @ NotNull final Validator validator , @ Nullable final TYPE value , @ Nullable final Class < ? > ... groups ) { if ( value == null ) { return new HashSet < ConstraintViolation < TYPE > > ( ) ; } return validator . validate ( value , groups ) ; }
Validates the given object .