-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Category comparator is not scalable #2
Comments
Yes, this is also correct. I will figure out something better. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Imagine having to add several other Categories to your code. The compareTo() method would be painful to expand. Consider storing the constants in an ordered collection, like a list for example.
The text was updated successfully, but these errors were encountered: