Uses of Class
top.tangyh.basic.exception.ArgumentException
Packages that use ArgumentException
-
Uses of ArgumentException in top.tangyh.basic.utils
Methods in top.tangyh.basic.utils that throw ArgumentExceptionModifier and TypeMethodDescriptionstatic intArgumentAssert.checkIndex(int index, int size) 检查下标(数组、集合、字符串)是否符合要求,下标必须满足:static intArgumentAssert.checkIndex(int index, int size, String errorMsgTemplate, Object... params) 检查下标(数组、集合、字符串)是否符合要求,下标必须满足:static <T> TArgumentAssert.contain(Collection<T> collection, T item) 断言给定值是否被另一个集合包含(即是否不为子串)static <T> TArgumentAssert.contain(Collection<T> collection, T item, String errorMsgTemplate, Object... params) 断言给定值是否被另一个集合包含(即是否不为子串)static voidArgumentAssert.isAssignable(Class<?> superType, Class<?> subType) 断言superType.isAssignableFrom(subType)是否为true.static voidArgumentAssert.isAssignable(Class<?> superType, Class<?> subType, String errorMsgTemplate, Object... params) 断言superType.isAssignableFrom(subType)是否为true.static voidArgumentAssert.isFalse(boolean expression) 断言是否为假,如果为true抛出ArgumentException异常static void断言是否为假,如果为true抛出ArgumentException异常static <T> TArgumentAssert.isInstanceOf(Class<?> type, T obj, String errorMsgTemplate, Object... params) 断言给定对象是否是给定类的实例static voidstatic voidstatic voidArgumentAssert.isTrue(boolean expression) 断言是否为真,如果为false抛出ArgumentException异常static void断言是否为真,如果为false抛出ArgumentException异常static <T> T[]ArgumentAssert.noNullElements(T[] array) 断言给定数组是否不包含null元素,如果数组为空或null将被认为不包含static <T> T[]ArgumentAssert.noNullElements(T[] array, String errorMsgTemplate, Object... params) 断言给定数组是否不包含null元素,如果数组为空或null将被认为不包含static <T,E> T ArgumentAssert.notAllNull(T object, E obj, String errorMsgTemplate, Object... params) 判断2个参数是否同时为空static <T,E> T ArgumentAssert.notAnyNull(T object, E obj, String errorMsgTemplate, Object... params) 判断2个参数是否任意一个为空static <T extends CharSequence>
TArgumentAssert.notBlank(T text) 检查给定字符串是否为空白(null、空串或只包含空白符),为空抛出ArgumentExceptionstatic <T extends CharSequence>
T检查给定字符串是否为空白(null、空串或只包含空白符),为空抛出ArgumentExceptionstatic StringArgumentAssert.notContain(String textToSearch, String substring) 断言给定字符串是否不被另一个字符串包含(即是否为子串)static StringArgumentAssert.notContain(String textToSearch, String substring, String errorMsgTemplate, Object... params) 断言给定字符串是否不被另一个字符串包含(即是否为子串)static <T> TArgumentAssert.notContain(Collection<T> collection, T item) 断言给定值是否不被另一个集合包含(即是否为子串)static <T> TArgumentAssert.notContain(Collection<T> collection, T item, String errorMsgTemplate, Object... params) 断言给定值是否不被另一个集合包含(即是否为子串)static <T extends CharSequence>
TArgumentAssert.notEmpty(T text) 检查给定字符串是否为空,为空抛出ArgumentExceptionstatic <E,T extends Iterable<E>>
TArgumentAssert.notEmpty(T collection) 断言给定集合非空static <K,V, T extends Map<K, V>>
TArgumentAssert.notEmpty(T map) 断言给定Map非空static <T> T[]ArgumentAssert.notEmpty(T[] array) 断言给定数组是否包含元素,数组必须不为null且至少包含一个元素static <T> T[]断言给定数组是否包含元素,数组必须不为null且至少包含一个元素static <T extends CharSequence>
T检查给定字符串是否为空,为空抛出ArgumentExceptionstatic <E,T extends Iterable<E>>
T断言给定集合非空static <K,V, T extends Map<K, V>>
T断言给定Map非空static <T> TArgumentAssert.notNull(T object) static <T> T