/guava/android/guava/src/com/google/common/primitives/Longs.java
max = array[i];array[i] = array[j];
array[i] = array[j];
} public static void reverse(long[] array, int fromIndex, int toIndex) { checkNotNull(array); checkPositionIndexes(fromIndex, toIndex, array.length); for (int i = fromIndex, j = toIndex - 1; i < j; i++, j--) { long tmp = array[i]; <extra_id_0> array[j] = tmp; } } public static void rotate(long[] array, int distance) { rotate(array, distance, 0, array.length); }