com.atlassian.crowd.integration.util
Class Assert
java.lang.Object
com.atlassian.crowd.integration.util.Assert
public class Assert
- extends Object
Method Summary |
static void |
notNull(Object object)
Assert that an object is not null . |
static void |
notNull(Object object,
String message)
Assert that an object is not null . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Assert
public Assert()
notNull
public static void notNull(Object object,
String message)
- Assert that an object is not
null
.
Assert.notNull(clazz, "The class must not be null");
- Parameters:
object
- the object to checkmessage
- the exception message to use if the assertion fails
- Throws:
IllegalArgumentException
- if the object is null
notNull
public static void notNull(Object object)
throws IllegalArgumentException
- Assert that an object is not
null
.
Assert.notNull(clazz, "The class must not be null");
- Parameters:
object
- the object to check
- Throws:
IllegalArgumentException
- if the object is null
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.