Store entries(custom pojo) in sorted order and retrieve entries around an entry
问题 I am trying to simulate a game board where multiple players can submit their game scores. The POJO viz. Entry.java represents an entry in the leaderboard. Note the overriden equals() method . Position is the position in the leaderboard, 1 being the user with the highest score public class Entry { private String uid; private int score; private int position; public Entry(String uid, int score) { this.uid = uid; this.score = score; } public Entry() { } public String getUid() { return uid; }