public interface Processor<T,R>
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMultiple()
This method determines whether the processor results in multiple results
per item.
|
List<R> |
processMultiple(T item)
This method processes the supplied item to
generate zero or more resulting values.
|
R |
processSingle(T item)
This method processes the supplied item to optionally
generated a new resulting value.
|
boolean isMultiple()
R processSingle(T item) throws Exception
item - The itemException - Failed to process the itemCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.