Definition
It provides a way to access the element of aggregate objects sequentially without exposing its underlying expression
Java
As of Java 1.5, Class implements Iterable which would return Iterator from its own method.
Definition
It provides a way to access the element of aggregate objects sequentially without exposing its underlying expression
Java
As of Java 1.5, Class implements Iterable which would return Iterator from its own method.
對「Iterator Pattern」的一則回應