On a class of nonlinear variational-hemivariational inequalities