/** * Sorts the specified region of longs into ascending numerical order, using {@link * Arrays#sort(long[], int, int)} method. * * @param a the region to be sorted. */ public static void sort(LongRegion a) { Arrays.sort(a.baseArray(), a.startIdx(), a.endIdx()); }
/** * Fills the specified region of longs with a specific value, using {@link Arrays#fill(long[], * int, int, long)} method. * * @param a the region to be filled. */ public static void fill(LongRegion a, long value) { Arrays.fill(a.baseArray(), a.startIdx(), a.endIdx(), value); }