Is implementation of Iterator for a specific collection is an example of Adapter design pattern ?
For example:- iterator implementation of ArrayList wraps ArrayList adaptee, while iterator implementation of Sets wraps HashSet adaptee.
Aucun commentaire:
Enregistrer un commentaire