Add Javadoc. Simplify arithmetic with Integer rotateRight.