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