Port OpenJDK 8 java.util.Arrays#setAll methods
and add tests
Bug: 27540010
Change-Id: I18f502caabc2f140fa503a0b03e9d6e310b4246c
diff --git a/api/current.txt b/api/current.txt
index 30a4a97..11ceda4 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -55103,6 +55103,10 @@
method public static void parallelSort(T[], int, int);
method public static void parallelSort(T[], java.util.Comparator<? super T>);
method public static void parallelSort(T[], int, int, java.util.Comparator<? super T>);
+ method public static void setAll(T[], java.util.function.IntFunction<? extends T>);
+ method public static void setAll(int[], java.util.function.IntUnaryOperator);
+ method public static void setAll(long[], java.util.function.IntToLongFunction);
+ method public static void setAll(double[], java.util.function.IntToDoubleFunction);
method public static void sort(int[]);
method public static void sort(int[], int, int);
method public static void sort(long[]);
diff --git a/api/system-current.txt b/api/system-current.txt
index 6adca2b..6d6be61 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -57721,6 +57721,10 @@
method public static void parallelSort(T[], int, int);
method public static void parallelSort(T[], java.util.Comparator<? super T>);
method public static void parallelSort(T[], int, int, java.util.Comparator<? super T>);
+ method public static void setAll(T[], java.util.function.IntFunction<? extends T>);
+ method public static void setAll(int[], java.util.function.IntUnaryOperator);
+ method public static void setAll(long[], java.util.function.IntToLongFunction);
+ method public static void setAll(double[], java.util.function.IntToDoubleFunction);
method public static void sort(int[]);
method public static void sort(int[], int, int);
method public static void sort(long[]);