com.baidu.unbiz.fluentvalidator
类 ResultCollectors

java.lang.Object
  继承者 com.baidu.unbiz.fluentvalidator.ResultCollectors

public class ResultCollectors
extends Object

框架自身实现的一个简单的验证结果收集器

作者:
zhangxu
另请参见:
ResultCollector, Result

构造方法摘要
ResultCollectors()
           
 
方法摘要
static ResultCollector<ComplexResult> toComplex()
          静态方法返回一个复杂结果收集器
static ResultCollector<ComplexResult2> toComplex2()
          静态方法返回一个复杂结果收集器,结果对于NULL友好,即使没有任何错误GenericResult.errors也不会是NULL,而是一个empty list
static ResultCollector<Result> toSimple()
          静态方法返回一个简单结果收集器
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ResultCollectors

public ResultCollectors()
方法详细信息

toSimple

public static ResultCollector<Result> toSimple()
静态方法返回一个简单结果收集器

返回:
简单的结果收集器ResultCollectorImpl

toComplex

public static ResultCollector<ComplexResult> toComplex()
静态方法返回一个复杂结果收集器

返回:
简单的结果收集器ComplexResultCollectorImpl

toComplex2

public static ResultCollector<ComplexResult2> toComplex2()
静态方法返回一个复杂结果收集器,结果对于NULL友好,即使没有任何错误GenericResult.errors也不会是NULL,而是一个empty list

返回:
简单的结果收集器ComplexResult2CollectorImpl


Copyright © 2015–2016 neoremind. All rights reserved.