Compare commits
2 Commits
b6d47f0d00
...
d0785d35e8
Author | SHA1 | Date | |
---|---|---|---|
d0785d35e8 | |||
a315edf88f |
@@ -16,7 +16,7 @@
|
||||
<url>http://zhouxy.xyz</url>
|
||||
|
||||
<description>
|
||||
Plusone Validator 是一个校验库,用于构建校验规则对对象(尤其是入参)进行校验。API 参考自 .NET 的 FluentValidation。
|
||||
Plusone Validator 是一个校验库,使用 lambda 表达式(包括方法引用)和流式 API 构建校验规则,对对象进行校验。
|
||||
</description>
|
||||
|
||||
<properties>
|
||||
|
@@ -82,7 +82,7 @@ public abstract class BaseComparablePropertyValidator<
|
||||
*
|
||||
* @param <X> 自定义异常类型
|
||||
* @param range 区间
|
||||
* @param exceptionFunction 根据属性值生成异常的函数
|
||||
* @param exceptionFunction 自定义异常
|
||||
* @return 当前校验器实例,用于链式调用
|
||||
*/
|
||||
public final <X extends RuntimeException> TPropertyValidator inRange(
|
||||
|
@@ -108,7 +108,7 @@ public abstract class BasePropertyValidator<
|
||||
*
|
||||
* @param <X> 自定义异常类型
|
||||
* @param condition 校验条件
|
||||
* @param exceptionFunction 自定义异常(以当前属性值为参数)
|
||||
* @param exceptionFunction 自定义异常
|
||||
* @return 当前校验器实例,用于链式调用
|
||||
*/
|
||||
protected final <X extends RuntimeException> TPropertyValidator withRule(
|
||||
|
Reference in New Issue
Block a user