public class Preconditions extends Object
Constructor and Description |
---|
Preconditions() |
Modifier and Type | Method and Description |
---|---|
static void |
checkNotNull(Object obj)
Tests an object to ensure it's not null.
|
static void |
checkState(boolean exp)
Tests an expression to make sure it's true.
|
public static void checkState(boolean exp)
exp
- The expression to testpublic static void checkNotNull(Object obj)
obj
- The object to testCopyright © 2017 Atlassian. All rights reserved.