I am aware that the visitor design pattern has been around in some form for years and so what I’m about to write in this post is not particularly innovative or special in any way. I just thought I’d discuss something I’ve been pondering for a while in my attempts to come up with interesting refactorings for the DuctileJ project.
Anyway, I read this article describing the pattern in C# and thought I’d translate the samples into Java.
I’ll write more on the subject later.
All content © 2018 Richard Cook. All rights reserved.