List of utility methods to do Int to Long Convert
long | adjustToLong(int i) Assumes a negative integer really is a positive integer that has wrapped around and re-creates the original value. if (i < 0) { return 2 * ((long) Integer.MAX_VALUE) + 2 + i; } else { return i; |