Java Utililty Methods Integer to Long

List of utility methods to do Integer to Long

Description

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

Method

long[]int2long(final int[] i)
intlong
final long[] l = new long[i.length];
for (int d = 0; d < l.length; ++d)
    l[d] = i[d];
return l;
longint2long(int i)
intlong
long l = i & 0x7fffffffL;
if (i < 0) {
    l |= 0x080000000L;
return l;
longint2long(int tInt)
intlong
return Long.valueOf(String.valueOf(tInt)).longValue();
LongintToLong(final int value)
int To Long
return (long) value;
longintToLong(int high, int low)
int To Long
return (((long) high) << 32) | (((long) low) & 0xffffffffl);
long[]intToLong(int[] values)
int To Long
if (values == null) {
    return null;
long[] results = new long[values.length];
for (int i = 0; i < values.length; i++) {
    results[i] = values[i];
return results;
...
long[]intToLongArr(int[] intArr)
int To Long Arr
long[] longArr = new long[intArr.length];
for (int i = 0; i < intArr.length; i++) {
    longArr[i] = Long.valueOf(intArr[i]).intValue();
return longArr;