I was taking a look to java java.lang.Integer
class and I noticed much methods with ">" and "<" operators but I don't know what are.
For example the method Integer.signum(int i)
:
public static int signum(int i) {
// HD, Section 2-7
return (i >> 31) | (-i >>> 31);
}
Or Integer.rotateLeft(int i, int distance)
public static int rotateLeft(int i, int distance) {
return (i << distance) | (i >>> -distance);
}