|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.objectify.led.util.ContractUtils
public class ContractUtils
Utility methods for asserting contracts.
| Method Summary | |
|---|---|
static void |
nonNull(Collection objects,
String objectName)
Checks if objects is null, and if any of its contents are null. |
static void |
nonNull(Object[] objects,
String objectName)
Checks if objects is null, and if any of its contents are null. |
static void |
notNull(Object object,
String objectName)
Checks if object is null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void notNull(Object object,
String objectName)
object - the objectobjectName - the name to reference the object by for exception messages
public static void nonNull(Object[] objects,
String objectName)
objects - the array of objectsobjectName - the name to reference the array by for exception messages
public static void nonNull(Collection objects,
String objectName)
objects - the collection of objectsobjectName - the name to reference the collection by for exception messages
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||