v1.2.21
-
ComputeOnceCache:- Added
callsLengthgetter to return the number of cached computations.
- Added
-
ComputeOnceCachedIDs:- Made
comparefield non-nullable and always initialized with a comparator (defaulting to_Comparer._defaultCompare). - Updated internal logic to consistently use non-null
compare. - Improved sorting and deduplication logic in
ComputeIDsconstructor. - Enhanced
computeIDsandgetByIDsmethods to correctly merge and order results by IDs. - Added detailed handling to preserve order and sorting of IDs and results.
- Made
-
ComputeIDs:- Made
comparefield non-nullable and always initialized. - Added
checkIDsSortedmethod to verify internal ID ordering. - Simplified and unified binary search and intersection logic to rely on non-null comparator.
- Improved
intersectionmethod to preserve input order of IDs. - Improved
getValuesByIndexesto handle cases where values list length differs from IDs length and ensure sorted output. - Simplified
equalsIDsto always use comparator.
- Made
-
ListIdValuePairExtension:- Updated
binarySearchIndexandbinarySearchmethods to require non-null comparator argument.
- Updated
-
_Comparer:- Updated
binarySearchIndexto require non-null comparator argument.
- Updated