samedi 13 avril 2019

Is implementation of Iterator for a specific collection in java is an example of Adapter design pattern?

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