Does such design pattern exists? It is similar but opposite to a factory pattern. The factory accepts a single input (e.g. type A) and creates a variant output (e.g. type X or Y or Z), depending on the input.
The pattern I'm thinking accepts various different types of input (e.g. type X or Y or Z) but produces only a single type of output (e.g. type A). What pattern is this, if it exists?
That's not a pattern per se, but rather it would require implementing the Adapter pattern as appropriate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With