I was about to ask the performance difference between a `switch` and this and then I remembered Java