public class Preconditions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkArgument(boolean expression)
Throws IllegalArgumentException if the expression is false
|
static void |
checkNotNull(java.lang.Object o)
Throws NullPointerException if the argument is null
|
public static void checkNotNull(java.lang.Object o)
o - The object to checkjava.lang.NullPointerExceptionpublic static void checkArgument(boolean expression)
expression - The expressionjava.lang.IllegalArgumentExceptionCopyright © 2017 Stackify, LLC. All Rights Reserved.