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, […]