类 FunctionItemProcessor<I,O>
- java.lang.Object
- org.springframework.batch.item.function.FunctionItemProcessor<I,O>
- 所有已实现的接口:
ItemProcessor<I,O>
public class FunctionItemProcessor<I,O> extends java.lang.Object implements ItemProcessor<I,O>
AnItemProcessor
implementation that delegates to aFunction
- 从以下版本开始:
- 4.0
- 作者:
- Michael Minella
构造器概要
构造器 构造器 说明 FunctionItemProcessor(java.util.function.Function<I,O> function)
构造器详细资料
FunctionItemProcessor
public FunctionItemProcessor(java.util.function.Function<I,O> function)
- 参数:
function
- the delegate. Must not be null
方法详细资料
process
public O process(I item) throws java.lang.Exception
从接口复制的说明:ItemProcessor
Process the provided item, returning a potentially modified or new item for continued processing. If the returned result is null, it is assumed that processing of the item should not continue.- 指定者:
process
在接口中ItemProcessor<I,O>
- 参数:
item
- to be processed- 返回:
- potentially modified or new item for continued processing,
null
if processing of the provided item should not continue. - 抛出:
java.lang.Exception
- thrown if exception occurs during processing.