You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Hummus-Ful
changed the title
Hash class to imlement Compareable
Hash class to implement Compareable
May 3, 2022
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: