public final class ArrayFill extends Object
| Modifier and Type | Method and Description |
|---|---|
static 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.
|
public static byte[] fill(byte[] a,
byte val)
a - the array to be filled.val - the value to be stored in all elements of the array.Arrays.fill(byte[],byte)public static char[] fill(char[] a,
char val)
a - the array to be filled.val - the value to be stored in all elements of the array.Arrays.fill(char[],char)public static double[] fill(double[] a,
double val)
a - the array to be filled.val - the value to be stored in all elements of the array.Arrays.fill(double[],double)public static float[] fill(float[] a,
float val)
a - the array to be filled.val - the value to be stored in all elements of the array.Arrays.fill(float[],float)public static int[] fill(int[] a,
int val)
a - the array to be filled.val - the value to be stored in all elements of the array.Arrays.fill(int[],int)public static long[] fill(long[] a,
long val)
a - the array to be filled.val - the value to be stored in all elements of the array.Arrays.fill(long[],long)public static short[] fill(short[] a,
short val)
a - the array to be filled.val - the value to be stored in all elements of the array.Arrays.fill(short[],short)public static <T> T[] fill(T[] a,
T val)
T - the array type.a - the array to be filled.val - the value to be stored in all elements of the array.Arrays.fill(Object[],Object)Copyright © 2001–2024 The Apache Software Foundation. All rights reserved.