org.infinispan.cdi.util
Class Contracts

java.lang.Object
  extended by org.infinispan.cdi.util.Contracts

public final class Contracts
extends Object

An helper class providing useful assertion methods.

Author:
Kevin Pollet (C) 2011 SERLI

Method Summary
static void assertNotNull(Object param, String message)
          Asserts that the given parameter is not null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertNotNull

public static void assertNotNull(Object param,
                                 String message)
Asserts that the given parameter is not null.

Parameters:
param - the parameter to check.
message - the exception message used if the parameter to check is null.
Throws:
NullPointerException - if the given parameter is null.

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.