|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gillius.Util.CheckUtils
public class CheckUtils
CheckUtils provides utitilies for precondition checking.
| Constructor Summary | |
|---|---|
CheckUtils()
|
|
| Method Summary | |
|---|---|
static void |
checkNull(java.lang.Object parameter,
java.lang.String paramName)
Checks if the given parameter is null, and if so throws an IllegalArgumentException with an appropriate message. |
static void |
checkSize(java.util.Collection c,
java.lang.String paramName,
int size)
Checks if the given parameter is null or has a size less than the given size, and if so, throws an IllegalArgumentException with an appropriate message. |
static void |
checkSize(java.lang.Object[] arr,
java.lang.String paramName,
int size)
Checks if the given parameter is null or has a size less than the given size, and if so, throws an IllegalArgumentException with an appropriate message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CheckUtils()
| Method Detail |
|---|
public static void checkNull(java.lang.Object parameter,
java.lang.String paramName)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static void checkSize(java.util.Collection c,
java.lang.String paramName,
int size)
public static void checkSize(java.lang.Object[] arr,
java.lang.String paramName,
int size)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||