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