Android Utililty Methods Int to Long Convert

List of utility methods to do Int to Long Convert

Description

The list of methods to do Int to Long Convert are organized into topic(s).

Method

longadjustToLong(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;