设计模式--行为模式--迭代模式--Java
Intent 目的
applicability 适应性to access an aggregate object's contents without exposing its internal representation.获取集合元素而不暴漏内部结构组织与逻辑。to support multiple traversals of aggregate objects.支持多种遍历方式。to provide a uniform interface for traversing different aggregate structures (that is, to support polymorphiciteration).为不同的集合提供一个统一的接口遍历集合。
