Refactor objects package
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-22 16:41:08 +01:00
parent a7ac446b0b
commit 11e4a07698
18 changed files with 20 additions and 20 deletions

View File

@@ -0,0 +1,19 @@
package wtf.beatrice.hidekobot.objects.comparators;
import java.util.Comparator;
import java.util.LinkedList;
/**
* This class gets two linked lists, and compares their first value alphabetically.
*/
public class MessageCommandAliasesComparator implements Comparator<LinkedList<String>> {
@Override
public int compare(LinkedList<String> linkedList, LinkedList<String> t1) {
if(linkedList.isEmpty()) return 0;
if(t1.isEmpty()) return 0;
return linkedList.get(0).compareTo(t1.get(0));
}
}