Arrays.SetAll 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
SetAll(Object[], IIntFunction) |
Set all elements of the specified array, using the provided generator function to compute each element. |
SetAll(Int32[], IIntUnaryOperator) |
Set all elements of the specified array, using the provided generator function to compute each element. |
SetAll(Int64[], IIntToLongFunction) |
Set all elements of the specified array, using the provided generator function to compute each element. |
SetAll(Double[], IIntToDoubleFunction) |
Set all elements of the specified array, using the provided generator function to compute each element. |
SetAll(Object[], IIntFunction)
Set all elements of the specified array, using the provided generator function to compute each element.
[Android.Runtime.Register("setAll", "([Ljava/lang/Object;Ljava/util/function/IntFunction;)V", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static void SetAll (Java.Lang.Object[] array, Java.Util.Functions.IIntFunction generator);
[<Android.Runtime.Register("setAll", "([Ljava/lang/Object;Ljava/util/function/IntFunction;)V", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member SetAll : 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, using the provided generator function to compute each element.
If the generator function throws an exception, it is relayed to the caller and the array is left in an indeterminate state.
Added in 1.8.
Java documentation for java.util.Arrays.setAll(T[], java.util.function.IntFunction<? extends T>)
.
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
SetAll(Int32[], IIntUnaryOperator)
Set all elements of the specified array, using the provided generator function to compute each element.
[Android.Runtime.Register("setAll", "([ILjava/util/function/IntUnaryOperator;)V", "", ApiSince=24)]
public static void SetAll (int[] array, Java.Util.Functions.IIntUnaryOperator generator);
[<Android.Runtime.Register("setAll", "([ILjava/util/function/IntUnaryOperator;)V", "", ApiSince=24)>]
static member SetAll : 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, using the provided generator function to compute each element.
If the generator function throws an exception, it is relayed to the caller and the array is left in an indeterminate state.
Added in 1.8.
Java documentation for java.util.Arrays.setAll(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
SetAll(Int64[], IIntToLongFunction)
Set all elements of the specified array, using the provided generator function to compute each element.
[Android.Runtime.Register("setAll", "([JLjava/util/function/IntToLongFunction;)V", "", ApiSince=24)]
public static void SetAll (long[] array, Java.Util.Functions.IIntToLongFunction generator);
[<Android.Runtime.Register("setAll", "([JLjava/util/function/IntToLongFunction;)V", "", ApiSince=24)>]
static member SetAll : 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, using the provided generator function to compute each element.
If the generator function throws an exception, it is relayed to the caller and the array is left in an indeterminate state.
Added in 1.8.
Java documentation for java.util.Arrays.setAll(long[], java.util.function.IntToLongFunction)
.
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
SetAll(Double[], IIntToDoubleFunction)
Set all elements of the specified array, using the provided generator function to compute each element.
[Android.Runtime.Register("setAll", "([DLjava/util/function/IntToDoubleFunction;)V", "", ApiSince=24)]
public static void SetAll (double[] array, Java.Util.Functions.IIntToDoubleFunction generator);
[<Android.Runtime.Register("setAll", "([DLjava/util/function/IntToDoubleFunction;)V", "", ApiSince=24)>]
static member SetAll : 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, using the provided generator function to compute each element.
If the generator function throws an exception, it is relayed to the caller and the array is left in an indeterminate state.
Added in 1.8.
Java documentation for java.util.Arrays.setAll(double[], java.util.function.IntToDoubleFunction)
.
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.