|
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 byte s with the specified value. |
static void |
fill(char[] array,
char value)
Fills an array of char s with the specified value. |
static void |
fill(double[] array,
double value)
Fills an array of double s with the specified value. |
static void |
fill(float[] array,
float value)
Fills an array of float s with the specified value. |
static void |
fill(int[] array,
int value)
Fills an array of int s with the specified value. |
static void |
fill(long[] array,
long value)
Fills an array of long s 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 short s 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)
byte
s with the specified value.array
- the arrayvalue
- the valuepublic static void fill(short[] array, short value)
short
s with the specified value.array
- the arrayvalue
- the valuepublic static void fill(int[] array, int value)
int
s with the specified value.array
- the arrayvalue
- the valuepublic static void fill(long[] array, long value)
long
s with the specified value.array
- the arrayvalue
- the valuepublic static void fill(float[] array, float value)
float
s with the specified value.array
- the arrayvalue
- the valuepublic static void fill(double[] array, double value)
double
s with the specified value.array
- the arrayvalue
- the valuepublic static void fill(char[] array, char value)
char
s 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 |