Make user comparable
This commit is contained in:
parent
1a5a62f11f
commit
ef8fd4d00c
1 changed files with 4 additions and 0 deletions
|
@ -26,4 +26,8 @@ public class User implements Serializable {
|
|||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int compareTo(@NotNull User o) {
|
||||
return username.compareTo(o.username);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue