Arrays.ParallelSetAll Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ParallelSetAll(Object[], IIntFunction) |
Set all elements of the specified array, in parallel, using the provided generator function to compute each element. |
ParallelSetAll(Double[], IIntToDoubleFunction) |
Set all elements of the specified array, in parallel, using the provided generator function to compute each element. |
ParallelSetAll(Int32[], IIntUnaryOperator) |
Set all elements of the specified array, in parallel, using the provided generator function to compute each element. |
ParallelSetAll(Int64[], IIntToLongFunction) |
Set all elements of the specified array, in parallel, using the provided generator function to compute each element. |
ParallelSetAll(Object[], IIntFunction)
Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
[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
Parameters
- array
- Object[]
array to be initialized
- generator
- IIntFunction
a function accepting an index and producing the desired value for that position
- Attributes
Remarks
Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
If the generator function throws an exception, an unchecked exception is thrown from parallelSetAll
and the array is left in an indeterminate state.
Added in 1.8.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParallelSetAll(Double[], IIntToDoubleFunction)
Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
[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
Parameters
- array
- Double[]
array to be initialized
- generator
- IIntToDoubleFunction
a function accepting an index and producing the desired value for that position
- Attributes
Remarks
Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
If the generator function throws an exception, an unchecked exception is thrown from parallelSetAll
and the array is left in an indeterminate state.
Added in 1.8.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParallelSetAll(Int32[], IIntUnaryOperator)
Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
[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
Parameters
- array
- Int32[]
array to be initialized
- generator
- IIntUnaryOperator
a function accepting an index and producing the desired value for that position
- Attributes
Remarks
Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
If the generator function throws an exception, an unchecked exception is thrown from parallelSetAll
and the array is left in an indeterminate state.
Added in 1.8.
Java documentation for java.util.Arrays.parallelSetAll(int[], java.util.function.IntUnaryOperator)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParallelSetAll(Int64[], IIntToLongFunction)
Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
[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
Parameters
- array
- Int64[]
array to be initialized
- generator
- IIntToLongFunction
a function accepting an index and producing the desired value for that position
- Attributes
Remarks
Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
If the generator function throws an exception, an unchecked exception is thrown from parallelSetAll
and the array is left in an indeterminate state.
Added in 1.8.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.