摘要: 迭代器模式 迭代器模式结构图: 示例代码: // 抽象迭代器 public interface Iterator <E>{ boolean hasNext(); E next(); } // 具体迭代器 public class ConcreteIterator<E> implements Iter 阅读全文
posted @ 2021-04-19 07:34 justKen 阅读(47) 评论(0) 推荐(0) 编辑