public static Set < ConstraintViolation < Object > > validate ( final Object obj , final Class < ? > ... scopes ) { if ( scopes == null ) { return validator ( ) . validate ( obj , Default . class ) ; } return validator ( ) . validate ( obj , scopes ) ; }
Validates the given object by using a newly created validator .