@ParametersAreNonnullByDefault
public class Arrays
extends java.lang.Object
| Constructor and Description |
|---|
Arrays() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fill(byte[] array,
byte value)
Fill a byte array with a value.
|
static void |
fill(char[] array,
char value)
Fill a char array with a value.
|
static void |
fill(double[] array,
double value)
Fill a double array with a value.
|
static void |
fill(float[] array,
float value)
Fill a float array with a value.
|
static void |
fill(int[] array,
int value)
Fill an int array with a value.
|
static void |
fill(long[] array,
long value)
Fill a long array with a value.
|
static void |
fill(short[] array,
short value)
Fill a short array with a value.
|
static void |
setLength(java.lang.Object array,
int newLength)
Set the length of an array.
|
public static void setLength(java.lang.Object array,
int newLength)
array - The arraynewLength - The new lengthpublic static void fill(byte[] array,
byte value)
array - The arrayvalue - The value to fill the array withpublic static void fill(short[] array,
short value)
array - The arrayvalue - The value to fill the array withpublic static void fill(char[] array,
char value)
array - The arrayvalue - The value to fill the array withpublic static void fill(int[] array,
int value)
array - The arrayvalue - The value to fill the array withpublic static void fill(long[] array,
long value)
array - The arrayvalue - The value to fill the array withpublic static void fill(float[] array,
float value)
array - The arrayvalue - The value to fill the array withpublic static void fill(double[] array,
double value)
array - The arrayvalue - The value to fill the array with