SortedComparator<T, P> class
Sorting rule that uses a custom comparator
.
- Inheritance
-
- Object
- SortedRule<
T, P> - SortedComparator
- Implementers
Constructors
-
SortedComparator.new(SortedMapper<
T, P> mapper, Comparator<P> comparator, {bool invert = false})
Properties
-
comparator
→ Comparator<
P> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- invert → bool
-
Whether to invert the sorting order.
finalinherited
-
mapper
→ SortedMapper<
T, P> -
Function mapping an object to the desired property (or itself).
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compare(
P a, P b) → int -
Compare two
P
properties returned by the mapper.override -
compareComplex(
T a, T b) → int -
Compare two
T
objects.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited