Luca Burgazzoli created CAMEL-16477:
---------------------------------------
Summary: ProcessorDefinitionHelper: ruturn a collection instead of
an iterator for filterTypeInOutputs methods
Key: CAMEL-16477
URL: https://issues.apache.org/jira/browse/CAMEL-16477
Project: Camel
Issue Type: Improvement
Components: camel-core
Reporter: Luca Burgazzoli
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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)