|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.graphics2d.Args
public class Args
A utility class that performs checks for method argument validity.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void nullNotPermitted(Object obj,
String ref)
null and throws an
IllegalArgumentException otherwise.
obj - the object to check for null.ref - the text name for the parameter (to include in the exception
message).
public static void arrayMustHaveLength(int length,
boolean[] array,
String ref)
IllegalArgumentException if it does not.
length - the required length.array - the array to check.ref - 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 array to check (null not permitted).ref - the text name of the array parameter (to include in the
exception message).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||