If the
Java language got rid of the switch/case construct, it would be one step closer to purism.
Almost always, these type of problems are better implemented as a Map rather than a switch/case construct.
Being the purist that I am, I haven't used a switch/case since last century some time - others might not have such a purist perspective and so will not concur.