compareElementTime method
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.
Implementation
@override
TimeComparisonResult compareElementTime(int elementNrA, int elementNrB) {
// No need to fully parse and instantiate the points, it's enough to
// compare the integer representations of the time values.
final timeA = _getUint32(_elementNrToByteOffset(elementNrA));
final timeB = _getUint32(_elementNrToByteOffset(elementNrB));
return compareIntRepresentationTime(timeA, timeB);
}