MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / compare

Method compare

The 5zig Mod/src/eu/the5zig/mod/I18n.java:52–55  ·  view source on GitHub ↗
(Locale l1, Locale l2)

Source from the content-addressed store, hash-verified

50
51 Collections.sort(languages, new Comparator<Locale>() {
52 @Override
53 public int compare(Locale l1, Locale l2) {
54 return l1.toString().compareTo(l2.toString());
55 }
56 });
57
58 currentLanguage = get(The5zigMod.getConfig().getString("language"));

Callers

nothing calls this directly

Calls 2

compareToMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected