| Package | Description |
|---|---|
| cn.jiguang.common.utils |
| Modifier and Type | Method and Description |
|---|---|
static void |
Preconditions.checkArgument(boolean expression,
java.lang.Object errorMessage)
Ensures the truth of an expression involving one or more parameters to the calling method.
|
static void |
Preconditions.checkArgument(boolean expression,
java.lang.String errorMessageTemplate,
java.lang.Object... errorMessageArgs)
Ensures the truth of an expression involving one or more parameters to the calling method.
|
static void |
Preconditions.checkArgument(boolean expression,
java.lang.String errorMessageTemplate,
java.lang.Object... errorMessageArgs)
Ensures the truth of an expression involving one or more parameters to the calling method.
|
static int |
Preconditions.checkElementIndex(int index,
int size,
java.lang.String desc)
Ensures that
index specifies a valid element in an array, list or string of size
size. |
static <T> T |
Preconditions.checkNotNull(T reference,
java.lang.Object errorMessage)
Ensures that an object reference passed as a parameter to the calling method is not null.
|
static <T> T |
Preconditions.checkNotNull(T reference,
java.lang.String errorMessageTemplate,
java.lang.Object... errorMessageArgs)
Ensures that an object reference passed as a parameter to the calling method is not null.
|
static <T> T |
Preconditions.checkNotNull(T reference,
java.lang.String errorMessageTemplate,
java.lang.Object... errorMessageArgs)
Ensures that an object reference passed as a parameter to the calling method is not null.
|
static int |
Preconditions.checkPositionIndex(int index,
int size,
java.lang.String desc)
Ensures that
index specifies a valid position in an array, list or string of
size size. |
static void |
Preconditions.checkState(boolean expression,
java.lang.Object errorMessage)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
|
static void |
Preconditions.checkState(boolean expression,
java.lang.String errorMessageTemplate,
java.lang.Object... errorMessageArgs)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
|
static void |
Preconditions.checkState(boolean expression,
java.lang.String errorMessageTemplate,
java.lang.Object... errorMessageArgs)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
|
Copyright © 2018. All Rights Reserved.