Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
The ProcessorDefinitionHelper define methods like:
Iterator<T> filterTypeInOutputs(List<ProcessorDefinition<?>> outputs, Class<T> type) Iterator<T> filterTypeInOutputs(List<ProcessorDefinition<?>> outputs, Class<T> type, int maxDeep)
Internally those methods are based on Lists but the return is always an iterator which make processing the result a little verbose.
We could instead return an immutable Collection