compareTo method Null safety
- T other
override
By default compare the two domain by it's id
Implementation
@override
int compareTo(T other) {
return this.id.compareTo(other.id);
}
By default compare the two domain by it's id
@override
int compareTo(T other) {
return this.id.compareTo(other.id);
}