|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.gwu.csd.algorithm.util.ArrayHelper
This class provides array functions.
| Constructor Summary | |
ArrayHelper()
|
|
| Method Summary | |
static int[][] |
cloneArray(int[][] sourceArray)
Creates a one by one copy of the given 2-dim array. |
static void |
fillArray(int[][][] array,
int defaultValue)
Fills the given 3-dim array with the spezified value. |
static void |
fillArray(int[][] array,
int defaultValue)
Fills the given 2-dim array with the spezified value. |
static void |
fillArray(int[] array,
int defaultValue)
Fills the given 1-dim array with the spezified value. |
static void |
printArray(int[][][] array,
java.lang.String varName)
Fills the given array with the spezified value. |
static void |
printArray(int[][] array,
java.lang.String varName)
Fills the given array with the spezified value. |
static void |
printArray(int[] array,
java.lang.String varName)
Fills the given array with the spezified value. |
static void |
printArray(java.lang.Object[] array,
java.lang.String varName)
Fills the given array with the spezified value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArrayHelper()
| Method Detail |
public static void fillArray(int[][][] array,
int defaultValue)
array - The 3-dim array that has to be filled.defaultValue - The given default value.
public static void fillArray(int[][] array,
int defaultValue)
array - The 2-dim array that has to be filled.defaultValue - The given default value.
public static void fillArray(int[] array,
int defaultValue)
array - The 1-dim array that has to be filled.defaultValue - The given default value.
public static void printArray(int[][][] array,
java.lang.String varName)
array - The array that has to be filled.
public static void printArray(int[][] array,
java.lang.String varName)
array - The array that has to be filled.
public static void printArray(int[] array,
java.lang.String varName)
array - The array that has to be filled.
public static void printArray(java.lang.Object[] array,
java.lang.String varName)
array - The array that has to be filled.public static int[][] cloneArray(int[][] sourceArray)
sourceArray - The 2-dim source array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||