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