List of utility methods to do Integer Array to Long
long | intArrayToLong(int[] array) int Array To Long StringBuilder sb = new StringBuilder(); for (int element : array) { sb.append(element); return Long.parseLong(sb.toString()); |
long[] | intArrayToLongArray(int[] ints) int Array To Long Array long[] ret = new long[ints.length / 2]; for (int i = 0; i < ints.length; i += 2) { ret[i / 2] = ((long) ints[i]) << 32 | ints[i + 1]; return ret; |