Needed to score and sort arbitrary objects, did I re-invent the wheel?
Working on an app that, at some point, I need to score several objects and see which one(s) are the highest scoring. I made a quick generic class, was there a better way / existing datatype I could have used?
https://github.com/storm717/psychtypes/blob/master/src/com/bvalosek/psychtypes/Scorer.java
It came from the need to sort a Map<SomeObjects, Integer> by the Integer value.
Posted Mar 24, 2012, 8:53 PM UTC
125