src/org/kocakosm/pitaya/util/XArrays.java
public static long[] concat(long[]... arrays)
	{
		int len = 0;
		for (long[] array : arrays) {
			len += array.length;
		}
		long[] concat = new long[len];
		int i = 0;
		for (long[] array : arrays) {
			System.arraycopy(array, 0, concat, i, array.length);
			i = array.length;
		}
		return concat;
	}
public static long[] concat(long[]... arrays)
	{
		int len = 0;
		for (long[] array : arrays) {
			len += array.length;
		}
		long[] concat = new long[len];
		int i = 0;
		for (long[] array : arrays) {
			System.arraycopy(array, 0, concat, i, array.length);
			i = array.length;
		}
		return concat;
	}
Concatenates the given arrays into a single one.

@param arrays the arrays to concatenate.

@return the concatenated array.

@throws NullPointerException if {@code arrays} is {@code null} or if
it contains a {@code null} reference.