compareElementTime method Null safety

TimeComparisonResult compareElementTime(
  1. int elementNrA,
  2. int elementNrB

Performs compareTime for the elements in the positions elementNrA and elementNrB, then returns the result.

Children my override this method to implement more efficient or custom implementations, for example if they support overlapping time or if they have a way to do quick time comparisons without doing full item retrieval.


TimeComparisonResult compareElementTime(int elementNrA, int elementNrB) {
  return comparePointTimes(this[elementNrA], this[elementNrB]);