1012 |
|
|
1013 |
|
/** |
1014 |
|
* <p> |
1015 |
< |
* The purpose of the Visitor Pattern is to encapsulate an operation that you want to perform on |
1016 |
< |
* the elements of a data structure. In this way, you can change the operation being performed |
1017 |
< |
* on a structure without the need of changing the classes of the elements that you are operating |
1018 |
< |
* on. Using a Visitor pattern allows you to decouple the classes for the data structure and the |
1019 |
< |
* algorithms used upon them |
1015 |
> |
* The purpose of the Visitor Pattern is to encapsulate an |
1016 |
> |
* operation that you want to perform on the elements of a data |
1017 |
> |
* structure. In this way, you can change the operation being |
1018 |
> |
* performed on a structure without the need of changing the |
1019 |
> |
* classes of the elements that you are operating on. Using a |
1020 |
> |
* Visitor pattern allows you to decouple the classes for the data |
1021 |
> |
* structure and the algorithms used upon them |
1022 |
|
* </p> |
1023 |
|
* @param v visitor |
1024 |
|
*/ |