easyexcel icon indicating copy to clipboard operation
easyexcel copied to clipboard

writer的Collection接口改为Iterable接口。 使用更高的抽象, 方便和业务结合使用

Open ls9527 opened this issue 2 years ago • 1 comments

在业务操作时,会通过Iterator抽象获取数据的来源。 例如从RPC,DB获取数据 目前提供的分页示例调用不方便, 如果改成Iterable之后。 可以使用 org.apache.commons.collections4.IteratorUtils#asIterable 将Iterator转为Iterable. .writer写出数据时,也不需要需要集合的其他元素, 改成Iterable完全没问题

ISSUE: https://github.com/alibaba/easyexcel/issues/1834

希望能得到回复

ls9527 avatar Jan 07 '23 16:01 ls9527

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 07 '23 16:01 CLAassistant