public abstract class Assert extends Object
| 构造器和说明 |
|---|
Assert() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends Comparable<T>> |
eq(T a,
T b,
String msg,
Object... args) |
static <T extends Comparable<T>> |
gt(T a,
T b,
String msg,
Object... args) |
static <T extends Comparable<T>> |
gte(T a,
T b,
String msg,
Object... args) |
static void |
hasNoLength(CharSequence text) |
static void |
hasNoLength(CharSequence text,
String msg,
Object... args) |
static void |
hasNoText(CharSequence text) |
static void |
hasNoText(CharSequence text,
String msg,
Object... args) |
static void |
isFalse(boolean result,
String msg,
Object... args) |
static <T extends Error> |
isFalse(boolean result,
T e) |
static <T extends Exception> |
isFalse(boolean result,
T e) |
static <T extends RuntimeException> |
isFalse(boolean result,
T e) |
static void |
isNotArray(Object arg) |
static void |
isNotArray(Object arg,
String msg,
Object... args) |
static void |
isNull(Object arg) |
static void |
isNull(Object arg,
RuntimeException e) |
static void |
isNull(Object arg,
String msg,
Object... args) |
static void |
isTrue(boolean result,
String msg,
Object... args) |
static <T extends Error> |
isTrue(boolean result,
T e) |
static <T extends Exception> |
isTrue(boolean result,
T e) |
static <T extends RuntimeException> |
isTrue(boolean result,
T e) |
static <T extends Comparable<T>> |
lt(T a,
T b,
String msg,
Object... args) |
static <T extends Comparable<T>> |
lte(T a,
T b,
String msg,
Object... args) |
static <T extends Comparable<T>> |
ne(T a,
T b,
String msg,
Object... args) |
public static void hasNoLength(CharSequence text)
public static void hasNoLength(CharSequence text, String msg, Object... args)
public static void hasNoText(CharSequence text)
public static void hasNoText(CharSequence text, String msg, Object... args)
public static void isNull(Object arg)
public static void isNull(Object arg, RuntimeException e)
public static void isNotArray(Object arg)
public static <T extends Comparable<T>> void lt(T a, T b, String msg, Object... args)
public static <T extends Comparable<T>> void lte(T a, T b, String msg, Object... args)
public static <T extends Comparable<T>> void gt(T a, T b, String msg, Object... args)
public static <T extends Comparable<T>> void gte(T a, T b, String msg, Object... args)
public static <T extends Comparable<T>> void ne(T a, T b, String msg, Object... args)
public static <T extends Comparable<T>> void eq(T a, T b, String msg, Object... args)
public static <T extends RuntimeException> void isTrue(boolean result, T e)
public static <T extends RuntimeException> void isFalse(boolean result, T e)
public static <T extends Exception> void isTrue(boolean result, T e) throws T extends Exception
T extends Exceptionpublic static <T extends Exception> void isFalse(boolean result, T e) throws T extends Exception
T extends Exceptionpublic static <T extends Error> void isTrue(boolean result, T e) throws T extends Error
T extends ErrorCopyright © 2020. All rights reserved.