Package org.infinispan.cdi.common.util
Class Contracts
java.lang.Object
org.infinispan.cdi.common.util.Contracts
An helper class providing useful assertion methods.
- Author:
- Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertNotNull(Object param, String message) Asserts that the given parameter is notnull.
-
Method Details
-
assertNotNull
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.
-