Sorted Collection
Sorted Collection が使いたいケースがあったので、APIの性能を比較した。 static class User implements Comparable<User>{ long time; String userId = "01234567"; public User(long time) { this.time = time; } @Override public int compareTo(User o) { if (this.time < o.time) { return -1; }else if (this.time == o.time) { return 0; }e…
2023/11/28 17:00