compareTo method
Returns the comparison to other
list of MoneyTransaction
.
Implementation
int compareTo(List<MoneyTransaction> other) {
sort();
other.sort();
return last.compareTo(other.last);
}
Returns the comparison to other
list of MoneyTransaction
.
int compareTo(List<MoneyTransaction> other) {
sort();
other.sort();
return last.compareTo(other.last);
}