Package org.infinispan.jcache.annotation
Class Contracts
- java.lang.Object
-
- org.infinispan.jcache.annotation.Contracts
-
public final class Contracts extends Object
An helper class providing useful assertion methods.- Author:
- Kevin Pollet
(C) 2011 SERLI
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertNotNull(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
.
-
-