-
Notifications
You must be signed in to change notification settings - Fork 80
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
Hash class to implement Compareable #64
Comments
Hummus-Ful
changed the title
Hash class to imlement Compareable
Hash class to implement Compareable
May 3, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
I use a HashMap object to store key, value pairs where the Hash object of each photo is used as a key.
I tried switching to TreeMap object as it provides automatic sorting of the entries it stores, but because the Hash class does not implements Compareable, I cant use Hash as key anymore and I have to workaround using BigInteger (using the getHashValue) or converting the Hash to string object.
If possible, I would like Hash class to implement Compareable so it can be used directly in a TreeMap.
The text was updated successfully, but these errors were encountered: