com.stackify.api.common.util
public class Preconditions extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkArgument(boolean expression)
Throws IllegalArgumentException if the expression is false
|
static void |
checkNotNull(Object o)
Throws NullPointerException if the argument is null
|
public static void checkNotNull(Object o)
o - The object to checkNullPointerExceptionpublic static void checkArgument(boolean expression)
expression - The expressionIllegalArgumentExceptionCopyright © 2016 Stackify, LLC. All Rights Reserved.