Class CheckArg

  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


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

argument - The argument
name - The name of the argument
IllegalArgumentException - If argument is null

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