Package org.infinispan.cdi.common.util
Class Contracts
- java.lang.Object
-
- org.infinispan.cdi.common.util.Contracts
-
public final class Contracts extends Object
An helper class providing useful assertion methods.- Author:
- Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertNotNull(Object param, String message)Asserts that the given parameter is notnull.
-
-
-
Method Detail
-
assertNotNull
public static void assertNotNull(Object param, String message)
Asserts that the given parameter is notnull.- Parameters:
param- the parameter to check.message- the exception message used if the parameter to check isnull.- Throws:
NullPointerException- if the given parameter isnull.
-
-