org.infinispan.cdi.util
Class Contracts
java.lang.Object
org.infinispan.cdi.util.Contracts
public final class Contracts
- extends Object
An helper class providing useful assertion methods.
- Author:
- Kevin Pollet (C) 2011 SERLI
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
assertNotNull
public static void assertNotNull(Object param,
String message)
- Asserts that the given parameter is not
null
. If the given parameter is null
a NullPointerException
is thrown.
- Parameters:
param
- the parameter to check.message
- the exception message used if the parameter to check is null
.
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.