org.modeshape.jdbc.util
Class CheckArg

java.lang.Object
  extended by org.modeshape.jdbc.util.CheckArg

public final class CheckArg
extends Object

Utility class that checks arguments to methods. This class is to be used only in API methods, where failure to supply correct arguments should result in a useful error message. In all cases, use the assert statement.


Method Summary
static void isNotNull(Object argument, String name)
          Check that the specified argument is non-null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isNotNull

public static void isNotNull(Object argument,
                             String name)
Check that the specified argument is non-null

Parameters:
argument - The argument
name - The name of the argument
Throws:
IllegalArgumentException - If argument is null


Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.