|
Sharkysoft home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--lava.array.ArrayFiller
Fills arrays.
Details: ArrayFiller is a collection of functions for filling arrays with values. In each of the fill methods, if the array passed in is null, no action is taken and no exception is thrown.
| Constructor Summary | |
ArrayFiller()
|
|
| Method Summary | |
static void |
fill(byte[] array,
byte b)
Fills an array of bytes with the specified value. |
static void |
fill(char[] array,
char value)
Fills an array of chars with the specified value. |
static void |
fill(double[] array,
double value)
Fills an array of doubles with the specified value. |
static void |
fill(float[] array,
float value)
Fills an array of floats with the specified value. |
static void |
fill(int[] array,
int value)
Fills an array of ints with the specified value. |
static void |
fill(long[] array,
long value)
Fills an array of longs with the specified value. |
static void |
fill(java.lang.Object[] array,
java.lang.Object obj)
Fills an array with the specified Object. |
static void |
fill(short[] array,
short value)
Fills an array of shorts with the specified value. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ArrayFiller()
| Method Detail |
public static void fill(java.lang.Object[] array,
java.lang.Object obj)
Object. If array is null, no action is taken and no exception is thrown. If array's type prohibits storing obj in its elements, an ArrayStoreException is thrown.array - the arrayobj - the objectarray cannot hold obj
public static void fill(byte[] array,
byte b)
bytes with the specified value.array - the arrayvalue - the value
public static void fill(short[] array,
short value)
shorts with the specified value.array - the arrayvalue - the value
public static void fill(int[] array,
int value)
ints with the specified value.array - the arrayvalue - the value
public static void fill(long[] array,
long value)
longs with the specified value.array - the arrayvalue - the value
public static void fill(float[] array,
float value)
floats with the specified value.array - the arrayvalue - the value
public static void fill(double[] array,
double value)
doubles with the specified value.array - the arrayvalue - the value
public static void fill(char[] array,
char value)
chars with the specified value.array - the arrayvalue - the value
|
Sharkysoft home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||