Package org.apache.commons.lang3
Class ArrayFill
java.lang.Object
org.apache.commons.lang3.ArrayFill
Fills and returns arrays in the fluent style.
- Since:
- 3.14.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
fill
(byte[] a, byte val) Fills and returns the given array.static char[]
fill
(char[] a, char val) Fills and returns the given array.static double[]
fill
(double[] a, double val) Fills and returns the given array.static float[]
fill
(float[] a, float val) Fills and returns the given array.static int[]
fill
(int[] a, int val) Fills and returns the given array.static long[]
fill
(long[] a, long val) Fills and returns the given array.static short[]
fill
(short[] a, short val) Fills and returns the given array.static <T> T[]
fill
(T[] a, T val) Fills and returns the given array.
-
Method Details
-
fill
Fills and returns the given array.- Parameters:
a
- the array to be filled (may be null).val
- the value to be stored in all elements of the array.- Returns:
- the given array.
- See Also:
-
fill
Fills and returns the given array.- Parameters:
a
- the array to be filled (may be null).val
- the value to be stored in all elements of the array.- Returns:
- the given array.
- See Also:
-
fill
Fills and returns the given array.- Parameters:
a
- the array to be filled (may be null).val
- the value to be stored in all elements of the array.- Returns:
- the given array.
- See Also:
-
fill
Fills and returns the given array.- Parameters:
a
- the array to be filled (may be null).val
- the value to be stored in all elements of the array.- Returns:
- the given array.
- See Also:
-
fill
Fills and returns the given array.- Parameters:
a
- the array to be filled (may be null).val
- the value to be stored in all elements of the array.- Returns:
- the given array.
- See Also:
-
fill
Fills and returns the given array.- Parameters:
a
- the array to be filled (may be null).val
- the value to be stored in all elements of the array.- Returns:
- the given array.
- See Also:
-
fill
Fills and returns the given array.- Parameters:
a
- the array to be filled (may be null).val
- the value to be stored in all elements of the array.- Returns:
- the given array.
- See Also:
-
fill
Fills and returns the given array.- Type Parameters:
T
- the array type.- Parameters:
a
- the array to be filled (may be null).val
- the value to be stored in all elements of the array.- Returns:
- the given array.
- See Also:
-