net.lessy.util
Class Reject

java.lang.Object
  extended by net.lessy.util.Reject

public class Reject
extends Object

Checks for several purposes like parameters for methods etc.

Author:
Hans Lesmeister

Constructor Summary
Reject()
           
 
Method Summary
static void ifNull(Object object, String message)
          Throws an exception if the passed object is null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reject

public Reject()
Method Detail

ifNull

public static void ifNull(Object object,
                          String message)
Throws an exception if the passed object is null

Parameters:
object - parameter to check
message - The message to pass on to the exception
Throws:
IllegalArgumentException - if the passed object is null


Copyright © 2012. All Rights Reserved.