net.lessy.util
Class Reject
java.lang.Object
net.lessy.util.Reject
public class Reject
- extends Object
Checks for several purposes like parameters for methods etc.
- Author:
- Hans Lesmeister
|
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 |
Reject
public Reject()
ifNull
public static void ifNull(Object object,
String message)
- Throws an exception if the passed object is null
- Parameters:
object - parameter to checkmessage - The message to pass on to the exception
- Throws:
IllegalArgumentException - if the passed object is null
Copyright © 2012. All Rights Reserved.