com.diasparsoftware.gsbase
Class Assert

java.lang.Object
  extended bycom.diasparsoftware.gsbase.Assert

public class Assert
extends java.lang.Object

A utility for runtime assertions.

Version:
$Revision: 1.1 $
Author:
J. B. Rainsberger

Constructor Summary
Assert()
           
 
Method Summary
static void notNull(java.lang.String argumentName, java.lang.Object argumentValue)
          Throws a runtime exception if the specified value is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assert

public Assert()
Method Detail

notNull

public static final void notNull(java.lang.String argumentName,
                                 java.lang.Object argumentValue)
Throws a runtime exception if the specified value is null.

Parameters:
argumentName - The name of the argument you are checking
argumentValue - The value of the argument you are checking
Throws:
com.gargoylesoftware.base.util.DetailedNullPointerException - Thrown if argumentValue is null


Copyright © 2003-2004 Diaspar Software Services, Inc.. All Rights Reserved.