示例#1
0
 /**
  * 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());
 }
示例#2
0
 /**
  * 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);
 }