mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-24 07:46:07 +00:00
Add AccountNameComparator
This commit is contained in:
parent
07aac1e6a3
commit
09fe550a28
1 changed files with 12 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
||||||
|
package com.beemdevelopment.aegis.helpers.comparators;
|
||||||
|
|
||||||
|
import com.beemdevelopment.aegis.db.DatabaseEntry;
|
||||||
|
|
||||||
|
import java.util.Comparator;
|
||||||
|
|
||||||
|
public class AccountNameComparator implements Comparator<DatabaseEntry> {
|
||||||
|
@Override
|
||||||
|
public int compare(DatabaseEntry a, DatabaseEntry b) {
|
||||||
|
return a.getName().compareTo(b.getName());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue