public class MyAssert
extends org.springframework.util.Assert
| 构造器和说明 |
|---|
MyAssert() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
isNotNull(Object object,
EnumInterface exceptionEnum) |
static void |
isNotTrue(boolean expression,
EnumInterface exceptionEnum) |
static void |
isNull(Object object,
EnumInterface exceptionEnum) |
static void |
isTrue(boolean expression,
EnumInterface exceptionEnum) |
static void |
notEmpty(Collection<?> collection,
EnumInterface exceptionEnum) |
static void |
notEmpty(Map<?,?> map,
EnumInterface exceptionEnum) |
static void |
notEmpty(Object[] array,
EnumInterface exceptionEnum) |
static void |
state(boolean expression,
EnumInterface exceptionEnum) |
doesNotContain, doesNotContain, doesNotContain, hasLength, hasLength, hasLength, hasText, hasText, hasText, isAssignable, isAssignable, isAssignable, isInstanceOf, isInstanceOf, isInstanceOf, isNull, isNull, isNull, isTrue, isTrue, isTrue, noNullElements, noNullElements, noNullElements, noNullElements, noNullElements, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notNull, notNull, notNull, state, state, statepublic static void state(boolean expression,
EnumInterface exceptionEnum)
public static void isTrue(boolean expression,
EnumInterface exceptionEnum)
public static void isNotTrue(boolean expression,
EnumInterface exceptionEnum)
public static void isNull(@Nullable
Object object,
EnumInterface exceptionEnum)
public static void isNotNull(@Nullable
Object object,
EnumInterface exceptionEnum)
public static void notEmpty(@Nullable
Object[] array,
EnumInterface exceptionEnum)
public static void notEmpty(@Nullable
Collection<?> collection,
EnumInterface exceptionEnum)
public static void notEmpty(@Nullable
Map<?,?> map,
EnumInterface exceptionEnum)
Copyright © 2021. All rights reserved.