3 ms·
> The solution of creating a bunch of tuples (or structs)...well, that's just creating a bunch of objects. Essentially in Java that's actually what you're doin
by altcognito 12y ago
> The solution of creating a bunch of tuples (or structs)...well, that's just creating a bunch of objects.
Essentially in Java that's actually what you're doing, and if you override the constructor of the enum you get a nice version of what the author is describing (but with more flexibility than a straight up Map)
(oh, bthornbury covered this in his comment)