Boyu Blog

Stay Hungry Stay Foolish,Keep Looking And Don’t Settle

Iterator Design

Java Design-pattern Iterator implementation

迭代器模式 核心思想 提供外部访问接口,而不暴露内部对象 可扩展的遍历方式 可遍历不同种类的对象 类图设计 Aggregate:聚集的抽象类 Concre