org.defne.utility
Class Assertions

java.lang.Object
  extended by org.defne.utility.Assertions

public final class Assertions
extends Object

Some assertions.

Version:
$Rev$ $Date$

Method Summary
static void checkForNull(Object object, String message)
          Checks the given parameter for nullability.
static void checkForNullParameter(Object object, String parameterName)
          Checks the given parameter for nullability.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkForNull

public static void checkForNull(Object object,
                                String message)
Checks the given parameter for nullability.

Parameters:
object - controlled object
message - message

checkForNullParameter

public static void checkForNullParameter(Object object,
                                         String parameterName)
Checks the given parameter for nullability.

Parameters:
object - controlled object
parameterName - parameter name


Copyright © 2010 MechSoft Mechanical and Software Solutions. All Rights Reserved.