@Override public int compareTo(Season S) { int cmp = _career.compareTo(S._career); if (cmp != 0) { return cmp; } return _year - S._year; }
@Override public boolean equals(Object O) { if (!(O instanceof Season)) { return false; } Season S = (Season) O; if (!_career.equals(S._career)) { return false; } return _year == S._year; }
@Override public int hashCode() { return _career.hashCode() * _year; }