easyexcel
easyexcel copied to clipboard
writer的Collection接口改为Iterable接口。 使用更高的抽象, 方便和业务结合使用
在业务操作时,会通过Iterator抽象获取数据的来源。 例如从RPC,DB获取数据 目前提供的分页示例调用不方便, 如果改成Iterable之后。 可以使用 org.apache.commons.collections4.IteratorUtils#asIterable 将Iterator转为Iterable. .writer写出数据时,也不需要需要集合的其他元素, 改成Iterable完全没问题
ISSUE: https://github.com/alibaba/easyexcel/issues/1834
希望能得到回复