All Packages Class Hierarchy This Package Previous Next Index
Class logic.Util
java.lang.Object
|
+----logic.Util
- public class Util
- extends Object
Some utilities
-
Util()
-
-
findIndex(int, int[])
- Returns -1 if val is not one of the elements of intArr; otherwise
returns the index of val in intArr.
-
toBooleanArray(Vector)
- Returns an array of Booleans having length the parameter passed in;
if any element of Vector parameter
is not a Boolean, null is inserted into the array.
Util
public Util()
findIndex
public static int findIndex(int val,
int intArr[])
- Returns -1 if val is not one of the elements of intArr; otherwise
returns the index of val in intArr.
toBooleanArray
public static Boolean[] toBooleanArray(Vector v)
- Returns an array of Booleans having length the parameter passed in;
if any element of Vector parameter
is not a Boolean, null is inserted into the array.
- Parameters:
- v - java.util.Vector
- Returns:
- java.lang.Boolean[]
All Packages Class Hierarchy This Package Previous Next Index