public final class RAssert extends Object
| 构造器和说明 |
|---|
RAssert() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
isTrue(boolean value,
String message) |
static void |
notEmpty(CharSequence string,
String message)
Assert that a string is not empty, it must not be
null and it must not be empty. |
static void |
notEmpty(double[] array,
String message) |
static void |
notEmpty(int[] array,
String message) |
static void |
notEmpty(Map<?,?> map,
String message)
Assert that a Map contains entries; that is, it must not be
null and must contain at least one entry. |
static void |
notEmpty(Object[] array,
String message)
Assert that an array contains elements; that is, it must not be
null and must contain at least one element. |
static void |
notNull(Object object,
String message)
Assert that an object is not
null |
public static void notNull(Object object, String message)
nullobject - message - public static void notEmpty(CharSequence string, String message)
null and it must not be empty.string - message - public static void notEmpty(Object[] array, String message)
null and must contain at least one element.array - message - public static void notEmpty(int[] array,
String message)
public static void notEmpty(double[] array,
String message)
public static void isTrue(boolean value,
String message)
Copyright © 2024. All rights reserved.