equals method
Indicates whether some other object is "equal to" this one. Comparison is based on the number of milliseconds in this TimeSpan.
@param obj the reference object with which to compare. @return if the obj argument is a TimeSpan object with the exact same number of milliseconds. otherwise.
Implementation
bool equals(Object obj) {
if (obj is TimeSpan) {
TimeSpan compare = obj;
if (this.time == compare.time) {
return true;
}
}
return false;
}