General types of Hamiltonians for particles of any spin