FicComparableExtension extension
- on
Methods
-
compareObjectTo(
Object? other, {bool nullsBefore = false, bool compareHashCodes = true}) → int -
Available on Object?, provided by the FicComparableExtension extension
If this object and
otherare bothnull, they don't have order. If one of them isnull, it will come later, unless thenullsBeforeistrue, in which case thenullwill come before.Otherwise, if this object and
otherare both of type Comparable, compare them with their natural comparator.Otherwise, if this object and
otherare map-entries (MapEntry), compare theirkeys. If theirkeys compare as the same, then compare theirvalues.Otherwise, if this object and
otherare booleans, compare them such astruecomes afterfalse.Otherwise, return
0, which means unordered.