com.baidu.unbiz.fluentvalidator
接口 Closure<T>

所有已知实现类:
ClosureHandler

public interface Closure<T>

仿闭包,接口中的 execute(Object...) 通过回调模拟闭包。

作者:
zhangxu

方法摘要
 void execute(Object... input)
          Performs an action on the specified input object.
 T executeAndGetResult(Object... input)
          Wrap execute(Object...) and getResult()
 T getResult()
          Get result
 

方法详细信息

execute

void execute(Object... input)
Performs an action on the specified input object.

参数:
input - the input to execute on

getResult

T getResult()
Get result

返回:
result object

executeAndGetResult

T executeAndGetResult(Object... input)
Wrap execute(Object...) and getResult()

参数:
input - the input to execute on
返回:
result object


Copyright © 2015–2016 neoremind. All rights reserved.