/** * Legions are sorted in descending order of total point value, with the titan legion always * coming first. * * <p>TODO This is inconsistent with equals() which means the Comparable contract is not * fulfilled. Probably better of in a Comparator in any case. */ public int compareTo(LegionServerSide other) { if (hasTitan()) { return Integer.MIN_VALUE; } else if (other.hasTitan()) { return Integer.MAX_VALUE; } else { return (other.getPointValue() - this.getPointValue()); } }