語言

Arrays.ParallelSetAll 方法

定義

多載

名稱 Description
ParallelSetAll(Object[], IIntFunction)

並行設定指定陣列中的所有元素,並利用提供的生成函數計算每個元素。

ParallelSetAll(Double[], IIntToDoubleFunction)

並行設定指定陣列中的所有元素,並利用提供的生成函數計算每個元素。

ParallelSetAll(Int32[], IIntUnaryOperator)

並行設定指定陣列中的所有元素,並利用提供的生成函數計算每個元素。

ParallelSetAll(Int64[], IIntToLongFunction)

並行設定指定陣列中的所有元素,並利用提供的生成函數計算每個元素。

ParallelSetAll(Object[], IIntFunction)

並行設定指定陣列中的所有元素,並利用提供的生成函數計算每個元素。

[Android.Runtime.Register("parallelSetAll", "([Ljava/lang/Object;Ljava/util/function/IntFunction;)V", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static void ParallelSetAll(Java.Lang.Object[] array, Java.Util.Functions.IIntFunction generator);
[<Android.Runtime.Register("parallelSetAll", "([Ljava/lang/Object;Ljava/util/function/IntFunction;)V", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member ParallelSetAll : Java.Lang.Object[] * Java.Util.Functions.IIntFunction -> unit

參數

array
Object[]

待初始化的陣列

generator
IIntFunction

一個接受索引並產生該位置所需值的函數

屬性

備註

並行設定指定陣列中的所有元素,並利用提供的生成函數計算每個元素。

如果產生器函式拋出例外,則會拋 parallelSetAll 出一個未被檢查的例外,陣列則處於不確定狀態。

新增於1.8版本。

Java 文件 java.util.Arrays.parallelSetAll(T[], java.util.function.IntFunction<? extends T>)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

ParallelSetAll(Double[], IIntToDoubleFunction)

並行設定指定陣列中的所有元素,並利用提供的生成函數計算每個元素。

[Android.Runtime.Register("parallelSetAll", "([DLjava/util/function/IntToDoubleFunction;)V", "", ApiSince=24)]
public static void ParallelSetAll(double[] array, Java.Util.Functions.IIntToDoubleFunction generator);
[<Android.Runtime.Register("parallelSetAll", "([DLjava/util/function/IntToDoubleFunction;)V", "", ApiSince=24)>]
static member ParallelSetAll : double[] * Java.Util.Functions.IIntToDoubleFunction -> unit

參數

array
Double[]

待初始化的陣列

generator
IIntToDoubleFunction

一個接受索引並產生該位置所需值的函數

屬性

備註

並行設定指定陣列中的所有元素,並利用提供的生成函數計算每個元素。

如果產生器函式拋出例外,則會拋 parallelSetAll 出一個未被檢查的例外,陣列則處於不確定狀態。

新增於1.8版本。

Java 文件 java.util.Arrays.parallelSetAll(double[], java.util.function.IntToDoubleFunction)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

ParallelSetAll(Int32[], IIntUnaryOperator)

並行設定指定陣列中的所有元素,並利用提供的生成函數計算每個元素。

[Android.Runtime.Register("parallelSetAll", "([ILjava/util/function/IntUnaryOperator;)V", "", ApiSince=24)]
public static void ParallelSetAll(int[] array, Java.Util.Functions.IIntUnaryOperator generator);
[<Android.Runtime.Register("parallelSetAll", "([ILjava/util/function/IntUnaryOperator;)V", "", ApiSince=24)>]
static member ParallelSetAll : int[] * Java.Util.Functions.IIntUnaryOperator -> unit

參數

array
Int32[]

待初始化的陣列

generator
IIntUnaryOperator

一個接受索引並產生該位置所需值的函數

屬性

備註

並行設定指定陣列中的所有元素,並利用提供的生成函數計算每個元素。

如果產生器函式拋出例外,則會拋 parallelSetAll 出一個未被檢查的例外,陣列則處於不確定狀態。

新增於1.8版本。

Java 文件 java.util.Arrays.parallelSetAll(int[], java.util.function.IntUnaryOperator)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

ParallelSetAll(Int64[], IIntToLongFunction)

並行設定指定陣列中的所有元素,並利用提供的生成函數計算每個元素。

[Android.Runtime.Register("parallelSetAll", "([JLjava/util/function/IntToLongFunction;)V", "", ApiSince=24)]
public static void ParallelSetAll(long[] array, Java.Util.Functions.IIntToLongFunction generator);
[<Android.Runtime.Register("parallelSetAll", "([JLjava/util/function/IntToLongFunction;)V", "", ApiSince=24)>]
static member ParallelSetAll : int64[] * Java.Util.Functions.IIntToLongFunction -> unit

參數

array
Int64[]

待初始化的陣列

generator
IIntToLongFunction

一個接受索引並產生該位置所需值的函數

屬性

備註

並行設定指定陣列中的所有元素,並利用提供的生成函數計算每個元素。

如果產生器函式拋出例外,則會拋 parallelSetAll 出一個未被檢查的例外,陣列則處於不確定狀態。

新增於1.8版本。

Java 文件 java.util.Arrays.parallelSetAll(long[], java.util.function.IntToLongFunction)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於