| java.lang.Object org.eclipse.ui.tests.harness.util.ArrayUtil
ArrayUtil | public class ArrayUtil (Code) | | ArrayUtil contains methods for array
examination.
|
Method Summary | |
public static boolean | checkNotNull(Object[] array) Returns whether an array is not null and
each object in the array is not null. | public static boolean | contains(Object[] array, Object element) Returns whether an array contains a given object. | public static boolean | equals(Object[] one, Object[] two) Returns whether two arrays are equal. | public static Object | pickRandom(Object[] array) Returns a random object chosen from an array. |
checkNotNull | public static boolean checkNotNull(Object[] array)(Code) | | Returns whether an array is not null and
each object in the array is not null.
Parameters: array - the input array true or false |
contains | public static boolean contains(Object[] array, Object element)(Code) | | Returns whether an array contains a given object.
Parameters: array - the input array Parameters: element - the test object true if the array contains the object,false otherwise. |
equals | public static boolean equals(Object[] one, Object[] two)(Code) | | Returns whether two arrays are equal. They must
have the same size and the same contents.
Parameters: one - the first array Parameters: two - the second array true if the array are equal,false otherwise. |
pickRandom | public static Object pickRandom(Object[] array)(Code) | | Returns a random object chosen from an array.
Parameters: array - the input array a random object in the array |
|
|