Skip to content
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

Open
Hummus-Ful opened this issue Apr 2, 2022 · 0 comments
Open

Hash class to implement Compareable #64

Hummus-Ful opened this issue Apr 2, 2022 · 0 comments

Comments

@Hummus-Ful
Copy link

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.

@Hummus-Ful 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant