Enum is the way here. Incredible how much Java I forgot already...