All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class logic.Util

java.lang.Object
   |
   +----logic.Util

public class Util
extends Object
Some utilities


Constructor Index

 o Util()

Method Index

 o findIndex(int, int[])
Returns -1 if val is not one of the elements of intArr; otherwise returns the index of val in intArr.
 o 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.

Constructors

 o Util
 public Util()

Methods

 o 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.

 o 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