E - the element typepublic interface ILocalizedAssert<E extends java.lang.RuntimeException>
IAssertLocalized
.| 限定符和类型 | 方法和说明 |
|---|---|
void |
isDirectory(java.io.File file,
java.lang.String arguDescps)
if arguDescpu file is not directory, throw exception.
|
void |
isExists(java.io.File file,
java.lang.String arguDescps)
判断传入文件对象代表的物理文件是否存在,判断失败抛出指定异常
.
|
void |
isFile(java.io.File file,
java.lang.String arguDescps)
if arguDescpu file is not a file, throw exception.
|
void |
isGe(int value,
int min,
java.lang.String arguDescp)
if value is < min throw exception.
|
void |
isGt(int value,
int min,
java.lang.String arguDescp)
if value is <= min throw exception.
|
void |
isInRange(int value,
int min,
int max,
java.lang.String arguDescp)
if value is < min or > max, throw exception.
|
void |
isInstanceOf(java.lang.Class<?> clazz,
java.lang.Object obj)
判断对象(第二个参数)是指定类型(第一个参数)的实例,判断失败抛出指定异常
.
|
void |
isLe(int value,
int max,
java.lang.String arguDescp)
if value is > max, throw exception.
|
void |
isLt(int value,
int max,
java.lang.String arguDescp)
if value is >= max, throw exception.
|
void |
isNotBlank(cn.featherfly.common.lang.function.SerializableSupplier<java.lang.String> propertySupplier)
判断不为空或空串(包括只有空字符的串),判断失败抛出指定异常
.
|
void |
isNotBlank(java.lang.String text,
java.lang.String arguDescp)
判断不为空或空串(包括只有空字符的串),判断失败抛出指定异常
.
|
void |
isNotEmpty(java.util.Collection<?> collection,
java.lang.String arguDescp)
判断集合不为null或size不为0,判断失败抛出指定异常
.
|
void |
isNotEmpty(java.util.Map<?,?> map,
java.lang.String arguDescp)
判断MAP不为null或size不为0,判断失败抛出指定异常
.
|
void |
isNotEmpty(java.lang.Object[] array,
java.lang.String arguDescp)
判断数组不为null或size不为0,判断失败抛出指定异常
.
|
void |
isNotEmpty(java.lang.Object obj,
java.lang.String arguDescps)
判断不为空(String,Collection,Map,Array还要判断长度是否为0),判断失败抛出指定异常
.
|
<T> void |
isNotEmpty(cn.featherfly.common.lang.function.SerializableSupplier<T> propertySupplier)
判断不为空(String,Collection,Map,Array还要判断长度是否为0),判断失败抛出指定异常
.
|
void |
isNotEmpty(java.lang.String text,
java.lang.String arguDescp)
判断不为空或空串,判断失败抛出指定异常
.
|
void |
isNotInterface(java.lang.Class<?> classType)
if arguDescpu classType is interface, throw exception.
|
void |
isNotNull(java.lang.Object object,
java.lang.String arguDescp)
判断不为空,如果为空,抛出指定异常
.
|
<T> void |
isNotNull(cn.featherfly.common.lang.function.SerializableSupplier<T> propertySupplier)
if null, throw exception
.
|
void |
isParent(java.lang.Class<?> parentType,
java.lang.Class<?> subType)
判断类型(第一个参数)是指定类型(第二个参数)的父类(包括接口实现和类继承),判断失败抛出指定异常
.
|
void isNotNull(java.lang.Object object,
java.lang.String arguDescp)
判断不为空,如果为空,抛出指定异常
.object - 判断的对象arguDescp - 出错时对参数的描述信息,例如:user.id、username等等<T> void isNotNull(cn.featherfly.common.lang.function.SerializableSupplier<T> propertySupplier)
if null, throw exception
.T - the generic typepropertySupplier - object property lambdavoid isNotBlank(java.lang.String text,
java.lang.String arguDescp)
判断不为空或空串(包括只有空字符的串),判断失败抛出指定异常
.text - 判断的字符串arguDescp - 出错时对参数的描述信息,例如:user.id、username等等void isNotBlank(cn.featherfly.common.lang.function.SerializableSupplier<java.lang.String> propertySupplier)
判断不为空或空串(包括只有空字符的串),判断失败抛出指定异常
.propertySupplier - object property lambdavoid isNotEmpty(java.lang.Object obj,
java.lang.String arguDescps)
判断不为空(String,Collection,Map,Array还要判断长度是否为0),判断失败抛出指定异常
.obj - 判断的对象arguDescps - 出错时对参数的描述信息,例如:user.id、username等等<T> void isNotEmpty(cn.featherfly.common.lang.function.SerializableSupplier<T> propertySupplier)
判断不为空(String,Collection,Map,Array还要判断长度是否为0),判断失败抛出指定异常
.T - the generic typepropertySupplier - object property lambdavoid isNotEmpty(java.lang.String text,
java.lang.String arguDescp)
判断不为空或空串,判断失败抛出指定异常
.text - 判断的字符串arguDescp - 出错时对参数的描述信息,例如:user.id、username等等void isNotEmpty(java.lang.Object[] array,
java.lang.String arguDescp)
判断数组不为null或size不为0,判断失败抛出指定异常
.array - 需要判断的数组arguDescp - 出错时对参数的描述信息,例如:user.id、username等等void isNotEmpty(java.util.Collection<?> collection,
java.lang.String arguDescp)
判断集合不为null或size不为0,判断失败抛出指定异常
.collection - 判断的集合arguDescp - 出错时对参数的描述信息,例如:user.id、username等等void isNotEmpty(java.util.Map<?,?> map,
java.lang.String arguDescp)
判断MAP不为null或size不为0,判断失败抛出指定异常
.map - 判断的集合arguDescp - 出错时对参数的描述信息,例如:user.id、username等等void isExists(java.io.File file,
java.lang.String arguDescps)
判断传入文件对象代表的物理文件是否存在,判断失败抛出指定异常
.file - 判断的文件对象arguDescps - 出错时对参数的描述信息,例如:uploadFile等等void isFile(java.io.File file,
java.lang.String arguDescps)
file - 判断的文件对象arguDescps - 出错时对参数的描述信息,例如:uploadFile等等void isDirectory(java.io.File file,
java.lang.String arguDescps)
file - 判断的文件对象arguDescps - 出错时对参数的描述信息,例如:uploadFile等等void isInstanceOf(java.lang.Class<?> clazz,
java.lang.Object obj)
判断对象(第二个参数)是指定类型(第一个参数)的实例,判断失败抛出指定异常
.clazz - 类型obj - 对象void isParent(java.lang.Class<?> parentType,
java.lang.Class<?> subType)
判断类型(第一个参数)是指定类型(第二个参数)的父类(包括接口实现和类继承),判断失败抛出指定异常
.parentType - 父类型subType - 子类型void isNotInterface(java.lang.Class<?> classType)
classType - the class typevoid isInRange(int value,
int min,
int max,
java.lang.String arguDescp)
value - valuemin - minmax - maxarguDescp - arguDescpvoid isGt(int value,
int min,
java.lang.String arguDescp)
value - valuemin - minarguDescp - arguDescpvoid isGe(int value,
int min,
java.lang.String arguDescp)
value - valuemin - minarguDescp - arguDescpvoid isLt(int value,
int max,
java.lang.String arguDescp)
value - valuemax - maxarguDescp - arguDescpvoid isLe(int value,
int max,
java.lang.String arguDescp)
value - valuemax - maxarguDescp - arguDescp