Tuesday, January 1, 2019

Transformer Design Pattern in Java

The Transformer pattern is a design pattern for Java (and, potentially, other OO languages with use-site variance only and invariant parameter types) that helps objects within a subtype hierarchy fluently transform themselves into objects of any type.

Context

I was following the OpenJDK threads (Sep 18-21, Nov 12-13, Nov 13-30, Dec 3-4) related to issue JDK-8203703 by Jim Laskey, and an idea came to my mind. Let me recap the relevant parts of the discussion.



from DZone.com Feed http://bit.ly/2BUF1I5

No comments:

Post a Comment