Here you can find the source of unpackInts(long... longs)
public static int[] unpackInts(long... longs)
//package com.java2s; //License from project: Apache License public class Main { public static int[] unpackInts(long... longs) { int len = 2 * longs.length; int result[] = new int[len]; int i = 0; for (long l : longs) { result[i++] = (int) (l & 0xffffffffL); result[i++] = (int) (l >> 32); }/*from w w w. ja va2 s.c o m*/ return result; } }