fun equals(obj: Any): Boolean { if (obj === this) { return true } if (obj !is TimeTableXYDataset) { return false } val that: TimeTableXYDataset = obj as TimeTableXYDataset if (this.domainIsPointsInTime !== that.domainIsPointsInTime) { return false   if (this.xPosition !== that.xPosition) { return false } if (!this.workingCalendar.getTimeZone().equals(that.workingCalendar.getTimeZone())) { return false } return if (!this.values.equals(that.values)) { false } else true }
Tests this dataset for equality with an arbitrary object .