public final class ApiPreconditions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkArgument(boolean expression)
Check the given expression.
|
static void |
checkArgument(boolean expression,
java.lang.String message)
Checks the given argument.
|
static <V> V |
notNull(V input)
Validate the given must not be null.
|
static <V> V |
notNull(V input,
java.lang.String message)
Validate the given must not be null.
|
public static <V> V notNull(V input)
throws AuthClientException
input - the given input.AuthClientException - if an error occurs during validate.public static <V> V notNull(V input,
java.lang.String message)
throws AuthClientException
input - the given input.message - the given exception message.AuthClientException - if an error occurs during validate.public static void checkArgument(boolean expression)
expression - the given expression to validate.public static void checkArgument(boolean expression,
java.lang.String message)
expression - the given expression to validate.message - the given message.