public class Args extends Object
| Modifier and Type | Method and Description |
|---|---|
static void | arrayMustHaveLength(int length,
boolean[] array,
String ref)Checks an array to ensure it has the correct length and throws an IllegalArgumentException if it does not. |
static void | arrayMustHaveLength(int length,
double[] array,
String ref)Checks an array to ensure it has the correct length and throws an IllegalArgumentException if it does not. |
static void | nullNotPermitted(Object obj,
String ref)Checks that an argument is non- null and throws an IllegalArgumentException
otherwise. |
public static void arrayMustHaveLength(int length,
boolean[] array,
String ref)IllegalArgumentException if it does not.length - the required length.array - the arrayref - the text name of the array parameter (to include in the exception message).public static void arrayMustHaveLength(int length,
double[] array,
String ref)IllegalArgumentException if it does not.length - the required length.array - the arrayref - the text name of the array parameter (to include in the exception message).